Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// "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