On Jun 27, 9:48 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 27.06.2009 um 02:23 schrieb _hrrld:
>
> > Am I doing something silly? Or perhaps I've misunderstood lazy-seq's
> > operation.
>
> I think, it's the latter. Here my try on an explanation:
> (snip...)

I found your explanation cogent and helpful, thank you.

> And finally you can get something similar with Clojure sequence
> library. I think it's slightly different to your code, but maybe
> it also works for you.
>
> (defn slightly-different-produce
>    [pred generator value]
>    (take-while pred (iterate generator value)))

take-while iterate... This is great also.

Much appreciated,
-Harold
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to