Last active
August 29, 2015 14:06
-
-
Save mariogarcia/3a7c596f690cb34cb7fc to your computer and use it in GitHub Desktop.
silly list comprehension
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 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