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
.
>> 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
- ✅ - full supported