|
Scala example source code file (bug1074.scala)
The Scala bug1074.scala source code
import scala.collection.immutable._
object Test {
def main(args : Array[String]) : Unit = {
var words = "a" :: "b" :: "cd" :: "de" :: "fg" :: "ef" ::
"gh" :: "jk" :: "hj" :: "kl" :: "lm" :: "mn" :: Nil
val q0:Set[String] =
new HashSet[String]() ++ words
val q1 = q0.filter(w => false)
val q2 = q1.filter(w => false)
Console.println("q0 = " + q0)
Console.println("q1 = " + q1+" "+q1.size)
Console.println("q2 = " + q2+" "+q2.size)
}
}
Other Scala examples (source code examples)Here is a short list of links related to this Scala bug1074.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.