From: "SHIGETOMI, Takuhiko" Date: 2005-08-29T20:05:15+09:00 Subject: Re: [Q] how to unflatten a flat-array greetings, Daniel. true. 'next' works. > You can't easily go backwards, but skipping to the next is > as easy as saying `next'. on the other hand, and as your reference 'cannot easyily go backwards', 'next' forgets current object unless any variable on outside of the yieldee block. how about writing a special yielder like as below .. any-enumerable-object.sliding_each do |prev,this,next| ... end - could be really useful? - any other good name? /void/3d/universe/milky-way-galaxy/orion-arm/sol-solar-system/3rd-planet/fareast/jp/tky/shigetomi.takuhiko.5618