From: mental@... Date: 2005-12-17T09:21:15+09:00 Subject: Re: multiple blocks (unfold) Sorry, needs some parens to parse: Quoting mental@rydia.net: > def Array.unfold( s, &block ) > unfolder = Unfolder.new &block > arr = [] > until unfolder.stop? s > arr << unfolder.f( s ) > s = unfolder.g( s ) > end > arr > end -mental