2015-03-14 11:55 GMT+01:00 Sean P. DeNigris <sean@clipperadams.com>:
Marcus Denker-4 wrote
> which version do we pick? We should pick one, rename the callers

As someone mentioned earlier in the thread, #doWithIndex: has the advantage
of mirroring the argument order (although this still should be documented),
and it's the one most people are probably most familiar with, so IMHO it
makes sense to standardize on that.

I like withIndexDo: because code like

aCollection withIndexDo: aBlock
reads like
"a collection with index"�� do



��



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/when-iterating-over-a-collection-how-to-determine-the-current-objects-index-tp4810920p4811848.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.