Hello,
Browsing around, i was happy to retrieve my old st80 MappedCollection
but i found this unconsistency:
MappedCollection size will answer domain size rather than map size...
This is wrong, because do will iterate only on map keys...
And (self at: self size) will fail badly.
| mc size |
mc := MappedCollection
collection: (1 to: 10)
map: (1 to: 5) asArray reverse.
size := 0.
mc do: [:each | size := size + 1].
^size !
| mc |
mc := MappedCollection
collection: (1 to: 10)
map: (1 to: 5) asArray reverse.
^mc at: mc size !
Nicolas Cellier
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk