MAP::VALUES 1g 2024-11-26 laplante@plcb.ca GOWEB/MAP


title: “MAP::VALUES Function” author: “Pierre Laplante laplante@plcb.ca” date: “2024-11-26” version: “1.0.0” section: “1g”

category: “GOWEB/MAP”

Name

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

Synopsis

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

Description

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.

Examples

res={{
    m := { "5" : "cinq", "1" : "un", "10" : "dix" };
    keys(m); "\n";
    values(m);
}}.

return

res=["1","10","5"]
["un","dix","cinq"].

Author

Pierre Laplante laplante@plcb.ca

See also

Version