MongooseA text-based world full of questionable inventions.

All help topics · Link to this topic

Showing help on 'mapvalues()'

Syntax: mapvalues (MAP <map> [, ... ANY <key>])

Returns the values of the elements of map.

If you only want the values of specific keys in the map, you can specify them as optional arguments. If any requested key is not present in the map, E_RANGE is raised.

Examples:
x = ["foo" -> 1, "bar" -> 2, "baz" -> 3];

;mapvalues(x)
=> {2, 3, 1}
;mapvalues(x, "foo", "baz")
=> {1, 3}