Skip to content

Instantly share code, notes, and snippets.

@stew
Created August 4, 2013 13:44
Show Gist options
  • Select an option

  • Save stew/6150363 to your computer and use it in GitHub Desktop.

Select an option

Save stew/6150363 to your computer and use it in GitHub Desktop.
scala> val f : Int => List[Int] = List(_)
f: Int => List[Int] = <function1>
scala> Stream(1,2,3) traverse f
res1: List[scala.collection.immutable.Stream[Int]] = List(Stream(1, ?))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment