Skip to content

Instantly share code, notes, and snippets.

@aruld

aruld/gist:8127783

Last active Jan 1, 2016
Embed
What would you like to do?
val employees = List("neal", "s", "stu", "j", "rich", "bob")
val result = employees
.filter(_.length() > 1)
.map(_.capitalize)
.reduce(_ + "," + _)
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.