Indexes

From MiniScript Wiki
Revision as of 17:31, 16 March 2020 by 71.226.33.30 (talk) (Created page with "<c>indexes</c> Returns the keys of a dictionary, or the non-negative indexes for a string or list. See also hasIndex === Arguments === {| class="wikitable" |- ! Paramet...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

indexes Returns the keys of a dictionary, or the non-negative indexes for a string or list.

See also hasIndex

Arguments

Parameter Name Default Value Meaning
self string, list, or map object to geet the indexes of

Example

Example: "foo".indexes	// returns [0, 1, 2]