Created
January 17, 2011 10:12
-
-
Save mariussoutier/782684 to your computer and use it in GitHub Desktop.
This file contains 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
// "Write less, do more" episode 1203: iterating Strings creates chars, yielding chars creates a String | |
def abbreviatedName(fullName: String) = for (ch <- fullName; if ch.isUpper) yield ch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment