Map Keys
The map::keys
function retrieves all keys from a map as a list.
Syntax
map::keys(<map>)
Parameters
map
: The input map whose keys will be extracted.
Returns
- List: A list of keys from the map.
Example
map::keys({"name": "Alice", "age": 30, "city": "New York"})
This function is useful for iterating over or analyzing the structure of a map.