Skip to content

Instantly share code, notes, and snippets.

@aruld
Created December 30, 2013 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aruld/8178976 to your computer and use it in GitHub Desktop.
Save aruld/8178976 to your computer and use it in GitHub Desktop.
var employees = { "neal", "s", "stu", "j", "rich", "bob" }
var result = employees.where(\s -> s.length > 1)
.map(\s -> s.capitalize())
.join(",")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment