keys
keys returns the list of keys from a map.
Notes
- The result is sorted lexicographically.
- Use it with
containsto test whether a key exists. - Pair it with
valueswhen you need both sides of a map.
keys returns the list of keys from a map.
contains to test whether a key exists.values when you need both sides of a map.