https://kotlinlang.org logo
#announcements
Title
# announcements
g

groostav

02/27/2017, 11:02 AM
and I'm actually kinda disappointed that
setOf(NaN, NaN).size
returns
1
u

uli

02/27/2017, 2:10 PM
groostav: well, depends on the compiler target 🙂
Copy code
fun main(args: Array<String>) {
 println(setOf(Double.NaN, Double.NaN).size)
}
prints 1 on kotlin -> JVM and 2 on kotlin -> JavaScript
g

groostav

03/06/2017, 7:55 PM
oh man that gives me the willies
4 Views