added add: to AssociativeDictionary, hence effectively to Dictionary

This commit is contained in:
hyunghwan.chung
2018-06-27 14:40:31 +00:00
parent 50e9103593
commit b100f9a46b
2 changed files with 23 additions and 13 deletions

View File

@ -1155,6 +1155,11 @@ class AssociativeCollection(Collection)
}
method add: anAssociation
{
^self __find: (anAssociation key) or_upsert: true with: (anAssociation value)
}
## ===================================================================
## ENUMERATING
## ===================================================================