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. Thierry 2015-03-10 13:27 GMT+01:00 Peter Uhnák <i.uh...@gmail.com>: > On Tue, Mar 10, 2015 at 1:23 PM, Joachim Tuchel <jtuc...@objektfabrik.de> > wrote: > >> #doWithIndex: ? >> > > doWithIndex: elementAndIndexBlock > "Use the new version with consistent naming" > ^ self withIndexDo: elementAndIndexBlock >