March 10, 2015
12:23 p.m.
#doWithIndex: ?
Am 10.03.2015 um 13:11 schrieb Sanjay Minni <sm@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-... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.