List type

From MiniScript Wiki
Jump to navigation Jump to search

The intrinsic function list 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

[1, 2, 3] isa list		// returns 1