Values

From MiniScript Wiki
Revision as of 21:50, 26 October 2022 by SebNozzi (talk | contribs) (Example for map values)
Jump to navigation Jump to search

values returns the values of a dictionary, or the characters of a string.(Returns any other value as-is.)

See also: Indexes

Arguments

Parameter Name Default Value Meaning
self any object to get the values of

Usage Notes

values may be called with function syntax or dot syntax.

Example

"abc".values                             // returns ["a", "b", "c"]
{"one": 1, "two": 2, "three": 3}.values  // returns [1, 2, 3]