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
.@aloiscochard @d6 @extempore2 Incidentally, is it possible to make a Set containing both 0.0 & -0.0? Remember they're different if boxed.
-
-
@propensive@d6@extempore2 oh I see, indeed it's not the same beast hereThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@propensive@aloiscochard@d6@extempore2 scala> System.identityHashCode(java.lang.Double.valueOf(0.0) ) == 1615708347 != ..valueOf(-0.0) )?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.