From: "ara.t.howard" Date: 2007-10-26T08:35:03+09:00 Subject: Re: Skip the first invocation e.g. skip_first { foo } On Oct 25, 2007, at 4:40 PM, Brian Adkins wrote: > first = true > 3.times do > if first > first = false > else > puts 'foo' > end > ... > end as others have mentioned you can use the block counter that's passed - but in general i've done things like this before: cfp:~ > cat a.rb block = lambda{ block = lambda{ puts 'foo' } } 3.times{ block.call } cfp:~ > ruby a.rb foo foo which, of course, can work for things like #each too. a @ http://codeforpeople.com/ -- it is not enough to be compassionate. you must act. h.h. the 14th dalai lama