juan_gandhi: (Default)
[personal profile] juan_gandhi
scala> def sample: Set[Any] = Set(1.0, 2.0, Double.NaN)
sample: Set[Any]

scala> val sample1 = sample; val sample2 = sample
sample1: Set[Any] = Set(1.0, 2.0, NaN)
sample2: Set[Any] = Set(1.0, 2.0, NaN)

scala> import collection.JavaConverters._
import collection.JavaConverters._

scala> sample2.asJava.asScala == sample1
res21: Boolean = false

scala> sample1 == sample2.asJava.asScala
res22: Boolean = true


Не берите в голову, в 12-й это все "пофиксено".
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 1920 21
222324252627 28
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 30th, 2025 05:39 pm
Powered by Dreamwidth Studios