Skip to content

Instantly share code, notes, and snippets.

@danidiaz
Created May 24, 2013 22:22
Show Gist options
  • Select an option

  • Save danidiaz/5646889 to your computer and use it in GitHub Desktop.

Select an option

Save danidiaz/5646889 to your computer and use it in GitHub Desktop.
scala> val s = Set(3,5,6)
s: scala.collection.immutable.Set[Int] = Set(3, 5, 6)
scala> List(34,234,5,6,3).map(s)
res3: List[Boolean] = List(false, false, true, true, true)
scala> List(34,234,5,6,3)(2)
res4: Int = 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment