Evaluate an expression in the global scope of the containing module.
3.2Core.
eval(m::Module, expr)
isa(x, type) —> Bool
中置記法(infix)でx isa typeともかける.
xがtypeのinstandeならtrueを返す.
Footnotes
“Thus far, we have presented only examples of functions defined with a single method, applicable to all types of arguments. However, the signatures of method definitions can be annotated to indicate the types of arguments in addition to their number, and more than a single method definition may be provided.” Docs.↩︎
“The choice of which method to execute when a function is applied is called dispatch.” Docs.↩︎
“Multiple dispatch is particularly useful for mathematical code, where it makes little sense to artificially deem the operations to”belong” to one argument more than any of the others: does the addition operation in x + y belong to x any more than it does to y?” Docs.↩︎