Adding two Set[Any]
- by Alex Boisvert
Adding two Set[Int] works:
Welcome to Scala version 2.8.1.final (Java HotSpot(TM) Server VM, Java 1.6.0_23).
Type in expressions to have them evaluated.
Type :help for more information.
scala> Set(1,2,3) ++ Set(4,5,6)
res0: scala.collection.immutable.Set[Int] = Set(4, 5, 6, 1, 2, 3)
But adding two Set[Any] doesn't:
scala>…