You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is reflexive: for any non-null reference value x, x.equals\(x\) should return true.
However, SeqView does not conform the rule:
Welcome to Scala2.12.1 (JavaHotSpot(TM) 64-BitServerVM, Java1.8.0_102).
Type in expressions for evaluation. Ortry:help.
scala>valv=Seq(0.0, 1.0).view.map{ d => d + math.random }
v: scala.collection.SeqView[Double,Seq[_]] =SeqViewM(...)
scala> v == v
res0:Boolean=false
The text was updated successfully, but these errors were encountered:
@Atry said (edited on Feb 21, 2017 9:51:54 AM UTC):
I think the only way to make SeqView conform these rules is making SeqView not be a GenSeq or Seq any more, though SeqView can extends GenSeqLike and SeqLike.
In JavaDoc for Object.equals
However, SeqView does not conform the rule:
The text was updated successfully, but these errors were encountered: