Difference between revisions of "Indexes"
Jump to navigation
Jump to search
m (fixed typo) |
|||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
for a string or list. | for a string or list. | ||
− | See also [[ | + | See also [[hasIndex]] |
=== Arguments === | === Arguments === | ||
Line 15: | Line 15: | ||
== Example == | == Example == | ||
− | <ms> | + | <ms>"foo".indexes // returns [0, 1, 2]</ms> |
[[Category:Intrinsic Functions]] | [[Category:Intrinsic Functions]] |
Latest revision as of 13:14, 19 June 2020
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
"foo".indexes // returns [0, 1, 2]