April 20, 2017
6:24 p.m.
2017-04-20 13:31 GMT-03:00 Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com>:
2017-04-20 17:06 GMT+02:00 Ben Coman <btc@openinworld.com>:
On the other hand, we have #keysAndValuesDo: which competes with #withIndexDo: and is a bit more portable across dialects (it's just that it turns the bloc parameters the other way around, [:index :element | ])
So maybe this should have been #keysAndValuesSelect: #keysAndValuesCollect:
+1
Reminder, keys does not mean Dictionary, in an IndexedCollection (or maybe a SequenceableCollection) the keys are indices. Or the other way around, a Dictionary is indexed by arbitrary keys (not just positive integers).
This is what I was trying to explain at the beginning. :) Esteban A. Maringolo