Skip to content

Instantly share code, notes, and snippets.

@abackstrom abackstrom/repl.scala
Last active Aug 29, 2015

Embed
What would you like to do?
scala> List("Annika", "Backstrom").map({ s: String => s.toUpperCase() })
res12: List[String] = List(ANNIKA, BACKSTROM)
scala> List("Annika", "Backstrom").map({ _.toUpperCase() })
res13: List[String] = List(ANNIKA, BACKSTROM)
scala> List("Annika", "Backstrom").map({ _.toUpperCase })
res14: List[String] = List(ANNIKA, BACKSTROM)
scala> List("Annika", "Backstrom").map { _.toUpperCase }
res15: List[String] = List(ANNIKA, BACKSTROM)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.