Associations¶
Access values in associations¶
Calling an association is a lookup, and a lookup composes: each result is itself callable, and the multi-argument form walks the same chain.
A key no association holds reports itself:
Update Values¶
$ wo 'myHash = <|"Green" -> 2, "Red" -> 1|>; myHash[["Green"]] = 5; myHash'
<|Green -> 5, Red -> 1|>
Add Values¶
$ wo 'myHash = <|"Green" -> 2, "Red" -> 1|>; myHash[["Puce"]] = 3.5; myHash'
<|Green -> 2, Red -> 1, Puce -> 3.5|>
KeyExistsQKeyDropFromKeysValuesMapAssociationThreadMergeKeyMapKeySelectKeyTakeKeyDropAssociationLookupGroupByKeyValueMapAssociationMapLengthNormal