title: “MAP::KEYS Function” author: “Pierre Laplante laplante@plcb.ca” date: “2024-08-21” version: “1.0.0” section: “1g”
map::keys returns an array containing all the keys from the provided map or maps.
map::keys or keys(map[, map...])
The map::keys
function returns an array containing all the keys from the provided map or maps.
When multiple maps are passed as arguments, the result contains the keys from all maps combined.
The keys are always returned in alphabetical order.
res={{
keys({ "b" : 1, "a" : 2 });
keys({ "b" : 1, "a" : 2 }, { "b" : 1, "a" : 2 });
}}.
return
res=["a","b"]["a","a","b","b"].
Pierre Laplante laplante@plcb.ca