Skip to content

Instantly share code, notes, and snippets.

@e2kaneko
Created September 29, 2012 04:33
Show Gist options
  • Save e2kaneko/3803171 to your computer and use it in GitHub Desktop.
Save e2kaneko/3803171 to your computer and use it in GitHub Desktop.
GroovyのClosure(クロージャ)コレクションの繰り返し
package com.e2info.groovy
[1, 2, 3, 4].each({x -> println x})
/*
1
2
3
4
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment