MenTaLguY <mental / rydia.net> 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 <chneukirchen / gmail.com> http://chneukirchen.org