And one has to guess that elementAndIndexBlock means[:each :i | ... ] ? (and of course not [:i :each | ... ] )I'm allways looking for senders with that type of code ;) arguments to blocks are usually not documented.Thierry2015-03-10 13:27 GMT+01:00 Peter Uhn��k <[hidden email]>:On Tue, Mar 10, 2015 at 1:23 PM, Joachim Tuchel <[hidden email]> wrote:#doWithIndex: ?��doWithIndex: elementAndIndexBlock"Use the new version with consistent naming"^ self withIndexDo: elementAndIndexBlock
If you reply to this email, your message will be added to the discussion below:http://forum.world.st/when-iterating-over-a-collection-how-to-determine-the-current-objects-index-tp4810920p4810931.htmlTo unsubscribe from when iterating over a collection how to determine the current objects index, click here.
NAML