From: "Peña, Botp" Date: 2007-10-26T12:32:32+09:00 Subject: Re: Skip the first invocation e.g. skip_first { foo } From: news [mailto:news@ger.gmane.org] On Behalf Of mortee # def skip_first(_skip_count = 1) # _iteration = 0 # lambda do |x| # yield x if _iteration >= _skip_count # _iteration += 1 # end # end # # # you can then pass the lambda returned by skip_first to any iterator, # # using the & notation # # 5.times &skip_first {|a| puts a} # 1 # 2 # 3 # 4 now that is cool :) kind regards -botp