Skip to content

Instantly share code, notes, and snippets.

@aruld

aruld/gist:8158266

Created Dec 28, 2013
Embed
What would you like to do?
fun main(args: Array<String>) {
val employees = array("neal", "s", "stu", "j", "rich", "bob")
val result = employees filter { it.length > 1 } map { it.capitalize() } reduce { x, y -> x + "," + y }
}
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.