Last active
April 12, 2017 12:41
-
-
Save koji-k/5e85c00d35df25191073d85ce4efdd66 to your computer and use it in GitHub Desktop.
groovyshから起動するスクリプト
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
a = 1 | |
b = 10 | |
r = (a..b).collect { | |
it * 2 | |
}.inject {l,r -> | |
l + r | |
} | |
println r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment