Skip to content

Instantly share code, notes, and snippets.

@mariogarcia
Last active August 29, 2015 14:06
Show Gist options
  • Save mariogarcia/3a7c596f690cb34cb7fc to your computer and use it in GitHub Desktop.
Save mariogarcia/3a7c596f690cb34cb7fc to your computer and use it in GitHub Desktop.
silly list comprehension
def elements = [1..4, 30..50, 'a'..'d']
def iterators = elements*.iterator()
while(iterators*.hasNext().every()) {
println iterators*.next()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment