Skip to content

Instantly share code, notes, and snippets.

@koji-k
Last active April 12, 2017 12:41
Show Gist options
  • Save koji-k/5e85c00d35df25191073d85ce4efdd66 to your computer and use it in GitHub Desktop.
Save koji-k/5e85c00d35df25191073d85ce4efdd66 to your computer and use it in GitHub Desktop.
groovyshから起動するスクリプト
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