On 15.02.2009, at 18:18, Rich Hickey wrote:
> I've been working on this for a few months, in lieu of more
> interesting things, because I knew it would be a breaking change and
> we're trying to get the biggest of those behind us. I appreciate any
> effort you spend in trying to provide informed input.
For those who want to play with this without keeping two versions of
their source code files, I have added a new macro lazy-and-standard-
branch to clojure.contrib.macros. Here is an example of how to use it:
(lazy-and-standard-branch
(defn value-seq [f seed]
(lazy-seq
(let [[value next] (f seed)]
(cons value (value-seq f next)))))
(defn value-seq [f seed]
(let [[value next] (f seed)]
(lazy-cons value (value-seq f next))))
)
Konrad.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---