|
Scala example source code file (t3493.scala)
The Scala t3493.scala source codeobject Test { def main(args: Array[String]) { import scala.collection.immutable._ val x = TreeSet("a", "b", "c", "d") val x2 = x + "e" assert(x2.toString == "TreeSet(a, b, c, d, e)") assert(x2.toString == runtime.ScalaRunTime.stringOf(x2).trim) } } Other Scala examples (source code examples)Here is a short list of links related to this Scala t3493.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.