Skip to content

keys

keys returns the list of keys from a map.

Notes

  • The result is sorted lexicographically.
  • Use it with contains to test whether a key exists.
  • Pair it with values when you need both sides of a map.