Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1005 Bytes

File metadata and controls

39 lines (22 loc) · 1005 Bytes

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)|>

Related terms

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

Implementation status

  • ✅ - full supported

Github