AssociateTo
AssociateTo(assoc, rule)
append
rule
to the associationassoc
and assign the result toassoc
.
AssociateTo(assoc, list-of-rules)
append the
list-of-rules
to the associationassoc
and assign the result toassoc
.
Examples
>> assoc = <|"A" -> <|"a" -> 1, "b" -> 2, "c" -> 3|>|><|A-><|a->1,b->2,c->3|>|>
>> AssociateTo(assoc, "A" -> 11)<|A->11|>
Related terms
Association, AssociationQ, AssociationMap, AssociationThread, Counts, Lookup, KeyExistsQ, Keys, KeySort, Values
Implementation status
- ✅ - full supported