On Oct 25, 2007, at 3:58 PM, mortee wrote: >> yes there is zip - fantastic if you are into duplicating both >> datasets >> in memory *and* are iterating over n=2 data structures but otherwise >> useless. > > Hmmm, are you sure that zip duplicates all the involved arrays even if > passed a block? pretty sure: cfp:~ > ruby -e' p ObjectSpace.each_object(Array){}; p [4].zip([2]) { break ObjectSpace.each_object(Array){} } ' 6 9 6 to start, create 2, zip makes one more = 9 cheers. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama