KeyValueMap

KeyValueMap[f,key1val1,key2val2,]

gives the list {f[key1,val1],f[key2,val2],}.

KeyValueMap[f]

represents an operator form of KeyValueMap that can be applied to an expression.

Details

Examples

Basic Examples  (1)

Map a function over the keys and values of an association:

In[1]:=
Click for copyable input
Out[1]=

See Also

Normal  MapIndexed  KeyMap  Association  Keys  Values

Introduced in 2015
(10.1)