Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
wants to merge 1 commit into from

2 participants

@S11001001
user> (clojure-version)
"1.5.1"
user> (class (iterate inc 0))
clojure.lang.Cons

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.

@frenchy64 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
View
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.