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
@dridus You might have thought so, but no. It's also not 1, despite the fact NaN.equals(NaN)...
-
-
@propensive then it must be 2, but is it reference equality for Set.apply / ++ and reg equality at the other spot?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.