We're updating the issue view to help you get more done. 

LazySeq switches to equiv when using equals

Description

When comparing lazy seqs with java equality operator .equals, the implementation switches to the Clojures .equiv comparison. This switch is not present in any other Seq or ordered collection type.

1 2 3 4 5 6 7 8 user> (.equals '(3) '(3N)) false user> (.equals [3] [3N]) false user> (.equals (seq [3]) (seq [3N])) false user> (.equals (lazy-seq [3]) (lazy-seq [3N])) true

Screened by: Alex Miller

Environment

None

Status

Assignee

Jozef Wagner

Reporter

Jozef Wagner

Approval

Ok

Patch

Code and Test

Fix versions

Affects versions

Release 1.7
Release 1.6

Priority

Major