#doWithIndex: ?
> Am 10.03.2015 um 13:11 schrieb Sanjay Minni <s...@planage.com>: > > Hi > > when iterating over a sequenced collection (array / ordered collection) how > can I determine the current objects index value (without explicitly storing > a counter or looking to match each time) > > Typically I need it: > 1. to display a serial number when printing a report. > 2. to determine if I am on the last element. > 3. To highlight every n-th element. > > regards > Sanjay > > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: > http://forum.world.st/when-iterating-over-a-collection-how-to-determine-the-current-objects-index-tp4810920.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > >