Skip to content

AssociationMap

Status: Stable

documented, exercised by the test suite and/or worked examples, with no known limitations recorded.

Description

AssociationMap[f, {k1, k2, ...}]
    Gives <|k1 -> f[k1], k2 -> f[k2], ...|>.

Examples

All examples below are verified against the current Mathilda build.

In[1]:= AssociationMap[#^2 &, {1, 2, 3, 4}]
Out[1]= <|1 -> 1, 2 -> 4, 3 -> 9, 4 -> 16|>

Implementation notes

Attributes: Protected.

Implementation status

Stable — documented, exercised by the test suite and/or worked examples, with no known limitations recorded.

References