title: “MAP::VALUES Function” author: “Pierre Laplante laplante@plcb.ca” date: “2024-11-26” version: “1.0.0” section: “1g”
map::values returns an array containing all the values from the provided map or maps.
map::values or values(map[, map...])
The map::values
function returns an array containing all the values from the provided map or maps.
When multiple maps are passed, the resulting array contains the values from all maps combined.
The values are returned in the order corresponding to their keys, which themselves are sorted alphabetically.
res={{
m := { "5" : "cinq", "1" : "un", "10" : "dix" };
keys(m); "\n";
values(m);
}}.
return
res=["1","10","5"]
["un","dix","cinq"].
Pierre Laplante laplante@plcb.ca