Difference between revisions of "FuncRef"
Jump to navigation
Jump to search
(Add link to the "isa" operator) |
(Add reference to the "isa" operator) |
||
Line 16: | Line 16: | ||
<ms>@floor isa funcRef // returns 1</ms> | <ms>@floor isa funcRef // returns 1</ms> | ||
[[Category:Intrinsic Functions]] | [[Category:Intrinsic Functions]] | ||
+ | |||
+ | == See also == | ||
+ | |||
+ | * The [[Isa | isa ("is a") operator]] |
Revision as of 00:12, 5 December 2021
funcRef
returns a map that represents a function reference in
MiniScript's core type system. This can be used with ` isa`
to check whether a variable refers to a function (but be
sure to use @ to avoid invoking the function and testing
the result).
See also: number; string; list; map
Usage Notes
funcRef
Be
sure to use @ to avoid invoking the function and testing
the result.
Example
@floor isa funcRef // returns 1