Map type

From MiniScript Wiki
Revision as of 22:13, 1 November 2020 by JoeStrout (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

map returns a map that represents the map datatype in MiniScript's core type system.

See also: number; string; list; funcRef

Usage Notes

map type can be used with isa to check whether a variable refers to a map. You can also assign new methods here to make them available to all maps.

Example

{"foo":42} isa map		// returns 1