Skip to content

AssociateTo

AssociateTo(assoc, rule)

append rule to the association assoc and assign the result to assoc.

AssociateTo(assoc, list-of-rules)

append the list-of-rules to the association assoc and assign the result to assoc.

Examples

>> assoc = <|"A" -> <|"a" -> 1, "b" -> 2, "c" -> 3|>|>
<|A-><|a->1,b->2,c->3|>|>
>> AssociateTo(assoc, "A" -> 11)
<|A->11|>

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

Implementation status

  • ✅ - full supported

Github