2009/5/10 Meikel Brandmeyer <m...@kotka.de>

> Hi Laurent,
>
> Am 10.05.2009 um 07:19 schrieb Laurent PETIT:
>
>  No problem, but you can still consider (for the definition of the
>> function) the equivalent higher-order version I provided later in the my
>> post (you didn't answer to this one):
>>
>> (defn repeatedly-while [no-arg-pred f]
>>  (take-while (fn [ _ ] (no-arg-pred) f))
>>
>> whose usage is the same as Meikel's one,
>>
>
> This is not equivalent to my version. The calling site
> looks the same, but it still consumes one element of
> the seq before evaluating the predicate. That is the
> way take-while works. But it doesn't help in the given
> reader example, since you read before checking,
> whether the reader is actually ready...
>

Wooops, you're totally right,


>
> Sincerely
> Meikel
>
>

--~--~---------~--~----~------------~-------~--~----~
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