From: Christian Neukirchen Date: 2005-12-18T23:23:27+09:00 Subject: Re: multiple blocks (unfold) MenTaLguY writes: > On Sun, 2005-12-18 at 00:41 +0900, Christian Neukirchen wrote: >> mental@rydia.net writes: >> >> > I've been pondering how to write an "unfold" in Ruby lately, and >> > I've not really found any non-awkward ways to do it yet. >> >> C'mon, let's do complete hylomorphisms. :-) > > Hey, this is pretty good. It might be worth into turning into a gem. > > Only thing is I don't know about to_a ... there's no real reason the > result has to be an array versus some other type (I've got lazy streams > in mind, at least). True, #to_a is left-over. Not sure what it should be called, tho. > -mental -- Christian Neukirchen http://chneukirchen.org