Before you run it, try to guess the value of wat. val n = 0.0/0.0 val set = Set(n, n) val wat = (set ++ set).size
-
-
@propensive@extempore2 scala> NaN equals NaN res1: Boolean = true scala> NaN == NaN res2: Boolean = false -
@daverstevens Yeah, and, -0.0 == 0.0 is true whereas -0.0 equals 0.0 is false /cc@extempore2
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.