From: ES Date: 2005-06-02T13:47:29+09:00 Subject: Re: internal iterators in ruby Le 2/6/2005, "Nicholas Seckar" a �crit: >ES wrote: > >>It may not be. >> >>left = [1, 2, 3, 4] >>right = %w[one two three four] >> >>left.zip(right) {|l,r| puts "#{l} = #{r}"} >> >> >That said, it can be tricky to implement zip in Ruby, and I'm guessing >the use of continuations is required. I do not follow, that is Array#zip. In any case, it is quite possible to implement zip without continuations -- see Enumerable#zip. Did you mean something else instead? E -- template void quack(duck& d) { d.quack(); }