Is there a way to make a lazy sequence whose sequential values are
derived from some function? I'm thinking about two ways:

    (recursive-fn-seq f initial [n]) ; returns (initial (f initial) (f
(f initial)) ...) n or infinity times
    (index-fn-seq f initial [n]); returns ((f i) (f (inc i)) (f (inc
(inc i))) ...) to i = n or infinity

I couldn't find either in the docs. Are either of these included in
Clojure, and if not, is there a way to create them?

Thanks for your answers?
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to