-
Notifications
You must be signed in to change notification settings - Fork 1
ToKeys
ricardoboss edited this page Sep 13, 2023
·
1 revision
The toKeys
function returns a list of keys from a map.
toKeys(map myMap)
-
myMap
is the map to get the keys from.
- Only the first level of keys are returned. Nested keys are not returned.
- The order of the keys is not guaranteed.
- If the map is empty, an empty list is returned.
list keys = toKeys({"a": 1, "b": 2, "c": 3}) // returns ["a", "b", "c"]
© 2023 Ricardo Boss • Licensed under MIT • Want to update this page? Edit it on GitHub and submit a pull request!