Created
January 28, 2011 22:00
-
-
Save jaredcacurak/801083 to your computer and use it in GitHub Desktop.
Create a function that accepts a collection of names and an adjective then returns a new collection of values in the form of, "NAME is so ADJECTIVE."
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
def appendIsSo (adjective, names) { | |
names?.to*.plus " is so ${adjective}." | |
} | |
appendIsSo 'awesome', [to: ['Aby', 'Brooke', 'Claire']] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.bennadel.com/blog/2109-Seven-Languages-In-Seven-Weeks-By-Bruce-Tate-What-An-Adventure.htm