Difference between revisions of "FuncRef"
Jump to navigation
Jump to search
(Created page with "<c>funcRef</c> 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 functi...") |
|||
Line 4: | Line 4: | ||
sure to use @ to avoid invoking the function and testing | sure to use @ to avoid invoking the function and testing | ||
the result). | the result). | ||
+ | |||
See also: [[number]]; [[string]]; [[list]]; [[map]] | See also: [[number]]; [[string]]; [[list]]; [[map]] | ||
Revision as of 17:19, 16 March 2020
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
<ms>@floor isa funcRef // returns 1