From: mike@... (Mike Stok) Date: 2002-03-12T06:36:45+09:00 Subject: Re: painfully newbie question In article <3C8D1A36.2020907@pinkjuice.com>, Tobias Reif wrote: > You can write > for i in 0..(population.length-1) > as > population.length.times do |i| or even get rid of the index entirely and iterate over the list population.each { |member| member.survival puts member } Mike -- mike@stok.co.uk | The "`Stok' disclaimers" apply. http://www.stok.co.uk/~mike/ | GPG PGP Key 1024D/059913DA mike@starnix.com | Fingerprint 0570 71CD 6790 7C28 3D60 http://www.starnix.com/ | 75D2 9EC4 C1C0 0599 13DA