Skip to content

map

Map/dictionary utilities.

arc
use map

Functions

FunctionSignatureDescription
merge(a, b) -> MapMerge two maps (b overwrites a)
map_values(m, fn) -> MapTransform all values
map_keys(m, fn) -> MapTransform all keys
filter_map(m, fn) -> MapFilter entries by predicate
from_pairs(pairs) -> MapCreate map from key-value pairs
to_pairs(m) -> [(Any, Any)]Convert map to key-value pairs
pick(m, keys) -> MapSelect only specified keys
omit(m, keys) -> MapRemove specified keys

Built-in keys(m), values(m) are available without use.

A programming language designed by AI agents, for AI agents.