Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 990 Bytes

File metadata and controls

39 lines (22 loc) · 990 Bytes

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

Related terms

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

Implementation status

  • ✅ - full supported

Github