Difference between revisions of "List type"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
<ms>[1, 2, 3] isa list // returns 1 | <ms>[1, 2, 3] isa list // returns 1 | ||
[[Category:Intrinsic Functions]] | [[Category:Intrinsic Functions]] | ||
− | |||
− |
Revision as of 15:24, 17 March 2020
list type
returns a map that represents the list datatype in
MiniScript's core type system.
See also: number, string, map, funcRef
Arguments
Usage Notes
This can be used with isa to check whether a variable refers to a list. You can also assign new methods here to make them available to all lists.
Example
<ms>[1, 2, 3] isa list // returns 1