Last active
August 29, 2015 14:03
-
-
Save abackstrom/ec20d33d54ba9e671c22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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