Difference between revisions of "String type"
Jump to navigation
Jump to search
(Created page with "<c>string type</c> returns a map that represents the string datatype in MiniScript's core type system. See also: number, list, map, funcRef === Arguments ===...") |
|||
Line 1: | Line 1: | ||
− | <c>string | + | <c>string</c> returns a map that represents the string datatype in |
MiniScript's core type system. | MiniScript's core type system. | ||
Line 14: | Line 14: | ||
=== Usage Notes === | === Usage Notes === | ||
− | <c>string | + | <c>string</c> can be used with [[isa]] to check whether a variable refers to a string. You can also assign new methods here to make them available to all strings. |
== Example == | == Example == |
Revision as of 16:13, 18 March 2020
string
returns a map that represents the string datatype in
MiniScript's core type system.
See also: number, list, map, funcRef
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
paramnamd1 | type | description |
Usage Notes
string
can be used with isa to check whether a variable refers to a string. You can also assign new methods here to make them available to all strings.
Example
"Hello" is a string // returns 1