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
-
-
-
Replying to @propensive
@propensive I was pretty sure Set(n,n).size was 2 and I figured Set's ++ might have an ill-advised eq hack.1 reply 0 retweets 1 like -
Replying to @d6
@propensive I tested this, you can see it with: val other = Set(n,n) (set++set).size==2 (set++other).size==4 (set+n).size==32 replies 0 retweets 0 likes
Replying to @d6
@d6 Yup. This is possibly more confusing, but your expansion covers it:
val n = 0.0/0.0
val set = Set(n) ++ Set(n)
(set ++ set).size == 2
6:30 AM - 16 Apr 2014
from Poplar, London
0 replies
0 retweets
0 likes
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.