List type

From MiniScript Wiki
Revision as of 17:52, 16 March 2020 by 71.226.33.30 (talk) (Created page with "<c>list type</c> returns a map that represents the list datatype in MiniScript's core type system. See also: number, string, map, funcRef === Arguments ===...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 isato 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