Skip to content

Instantly share code, notes, and snippets.

@lu4nm3
Last active May 14, 2020 04:27
Show Gist options
  • Save lu4nm3/ad62ce047b6229a21f7bb945a2e671e3 to your computer and use it in GitHub Desktop.
Save lu4nm3/ad62ce047b6229a21f7bb945a2e671e3 to your computer and use it in GitHub Desktop.
val doubles = new Set[Double]()
doubles.add(1.0)
doubles.add(3.0)
scala> doubles.get(0)
res1: Double = 1.0
val strings = new Set[String]()
strings.add("one")
strings.add("two")
scala> strings.get(0)
res0: String = "one"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment