A map is the uoe standard for a determinstic function.
A map has only one input argument, so you may like to pass in a tuple or other data type if you need more complex input.
A map must obey the following rule:
Calling a map with an enum containing data is equivalent to first calling the map with just the symbol of the enum, and subsequently calling the result with just the data of the enum. In other words map(:foo(data)) must be equivalent to map(:foo)(data).
Accessing a property on a map (map.foo) is syntactic sugar for calling the map with the respective symbol (map(enm.foo)).
When calling a map, another map is returned. The only exception is when a map is called with undefined, this is the only way a final non-map result can be obtained, this is referred to as a "leaf" value.
If the leaf value is an api, it is implicitely executed and the result is returned instead.
A map is the uoe standard for a determinstic function.
A map has only one input argument, so you may like to pass in a tuple or other data type if you need more complex input.
A map must obey the following rule:
map(:foo(data))
must be equivalent tomap(:foo)(data)
.Accessing a property on a map (
map.foo
) is syntactic sugar for calling the map with the respective symbol (map(enm.foo)
).When calling a map, another map is returned. The only exception is when a map is called with
undefined
, this is the only way a final non-map result can be obtained, this is referred to as a "leaf" value.If the leaf value is an api, it is implicitely executed and the result is returned instead.