In R, function may not be as special as it is in other programming languages; it is regarded as one of the many types and can be passed as an argument to some other function. The way we deal with other objects such list and data.frame definitely applies to function. Here is a simple example in which we define two funct继续阅读 »
Type determination
java interface query:
interfaceDemo instanceof InterfaceDemo
subClassInstance instanceof ParentClass
python
isinstance
golang interface query:
value, ok := element.(T) element is interface var, T is base type
switch value := element.(type)继续阅读 »
== Java ==
What
The constant pool contains the constants associated with the class or interface defined by the file.
Constants are stored in the constant pool.
literal strings
final variable values
fully qualified names of classes and interfaces
field names and descriptors
method names and descriptors
Symbolic refer继续阅读 »
Data structure stores a sequence of items in a list
|List | Java | Python | Go |
|:------------|:---------------------------------|:----------|:--------------------|
|type | List, Arraylist, LinkedList | list | List |
|package | im继续阅读 »