March 6, 2019
1:25 p.m.
I was surprised to find that a Bag canât convert to a dictionary - e.g. Bag new addAll: 'aabbbbcdddâ; asDictionary Gives an error - Dnu #key It looks to me like Bag is inheriting a bad version of #associationsDo: and instead could simply forward it to #doWithOccurences: instead? I know Bag is not used that much - but it comes up a lot in programming exercises. Tim