Can someone explain why this isn't working how I expect?
add: rhsKey
myUnits includesKey: rhsKey
ifTrue: myUnits put: (myUnits at: rhsKey) + 1 at: rhsKey
ifFalse: myUnits add: rhsKey -> 1.
Example execution:
ut := UnitTracker named: 'test'.
ut add: 'seconds'.
ut add: 'seconds'.
ut add: 'seconds'.
ut add: 'minutes'.
It keeps executing through the ifTrue on the first go-round.