core.typed

clojure.core/iterate has wrong return type

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Clojure 1.5.1
  • Patch:
    Code

Description

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

As opposed to the current LazySeq return type.

Also at https://github.com/clojure/core.typed/pull/4

Activity

Hide
Ambrose Bonnaire-Sergeant added a comment -

This is starting to make me rethink what a clojure.core docstring means exactly by a "lazy sequence".

Show
Ambrose Bonnaire-Sergeant added a comment - This is starting to make me rethink what a clojure.core docstring means exactly by a "lazy sequence".
Hide
Ambrose Bonnaire-Sergeant added a comment -

I'm going to change all functions that return LazySeq to Seq.

Show
Ambrose Bonnaire-Sergeant added a comment - I'm going to change all functions that return LazySeq to Seq.
Hide
Ambrose Bonnaire-Sergeant added a comment -

Using Seq as return types.

Show
Ambrose Bonnaire-Sergeant added a comment - Using Seq as return types.
Ambrose Bonnaire-Sergeant made changes -
Field Original Value New Value
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Ambrose Bonnaire-Sergeant made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: