Map Values
The map::values
function retrieves all the values from a map as a list.
Syntax
map::values(<map>)
Parameters
map
: The input map from which values will be extracted.
Returns
- List: A list of values from the map.
Example
map::values({"name": "Alice", "age": 30, "city": "New York"})
This function is useful for extracting all values from a map, especially when only the data (without keys) is required.