Skip to content

AssociationMap

AssociationMap(header, <|k1->v1, k2->v2,...|>)

create an association <|header(k1->v1), header(k2->v2),...|> with the rules mapped by the header.

AssociationMap(header, {k1, k2,...})

create an association <|k1->header(k1), k2->header(k2),...|> with the rules mapped by the header.

Examples

>> AssociationMap(Reverse,<|U->1,V->2|>)
<|1->U,2->V|>
>> AssociationMap(f,{U,V})
<|U->f(U),V->f(V)|>

Association, AssociationQ, AssociationThread, Counts, Lookup, KeyExistsQ, Keys, KeySort, Values

Implementation status

  • ✅ - full supported

Github