Laurent PETIT a écrit :
> Hello,
> What about giving back 'lazy-cons (or lcons as a shortcut), with the 
> optional possibility to give the cons an internal name ?
It would work and that's why Stuart said "without resorting to code in 
clojure-contrib":
(defn fibo[]
 (seq-utils/rec-cat fib [0 1] (map + fib (rest fib))))

(Btw, Stuart, due to latest changes in Clojure's lazy-seq 
implementation, rec-seq is atom-based again.)

Christophe


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