Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


clojure.core/iterate returns with 'cons', not lazy-seq. #4

wants to merge 1 commit into from

2 participants

Stephen Compall Ambrose Bonnaire-Sergeant
Stephen Compall
user> (clojure-version)
user> (class (iterate inc 0))

I left it ISeq, a supertype of ∀a.(U (ASeq a) (LazySeq a)), as it seems reasonable to some to make it LazySeq-returning in the future.

Ambrose Bonnaire-Sergeant frenchy64 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/clojure/clojure/core/typed/base_env.clj
2  src/main/clojure/clojure/core/typed/base_env.clj
@@ -731,7 +731,7 @@ clojure.core/doall (All [[c :< (U nil (Seqable Any))]]
clojure.core/dorun (Fn [(U nil (Seqable Any)) -> nil]
[AnyInteger (U nil (Seqable Any)) -> nil])
clojure.core/iterate (All [x]
- [[x -> x] x -> (LazySeq x)])
+ [[x -> x] x -> (ISeq x)])
clojure.core/memoize (All [x y ...]
[[y ... y -> x] -> [y ... y -> x]])
Something went wrong with that request. Please try again.