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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to