MAP::KEYS 1g 2024-08-21 laplante@plcb.ca GOWEB/MAP


title: “MAP::KEYS Function” author: “Pierre Laplante laplante@plcb.ca” date: “2024-08-21” version: “1.0.0” section: “1g”

category: “GOWEB/MAP”

Name

map::keys returns an array containing all the keys from the provided map or maps.

Synopsis

map::keys or keys(map[, map...])

Description

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.

Examples

res={{
    keys({ "b" : 1, "a" : 2 });
    keys({ "b" : 1, "a" : 2 }, { "b" : 1, "a" : 2 });
}}.

return

res=["a","b"]["a","a","b","b"].

Author

Pierre Laplante laplante@plcb.ca

See also

Version