I understand vaguely.
My understanding is that recur is related to tail-call-optimization.
Where can I get more detailed info on recur?

thanks
-sun


On Jan 24, 11:00 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 24.01.2009 um 16:50 schrieb wubbie:
>
> > I wonder why self-call(filter) is used in one place and
> > recur is used in the other.
>
> The filter call happens inside the lazy-cons. That means
> that the call to filter does not happen immediately, but
> later on when you call rest on the lazy-cons.
>
> The recur is used when the predicate does not return
> true, because here we stay inside filter and recursive
> call could blow up the stack.
>
> Sincerely
> Meikel
>
>  smime.p7s
> 5KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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
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