Skip to content

Instantly share code, notes, and snippets.

@robi42
Created July 12, 2011 20:52
Show Gist options
  • Save robi42/1078959 to your computer and use it in GitHub Desktop.
Save robi42/1078959 to your computer and use it in GitHub Desktop.
Conveniently iterate over a java.util.HashSet in Ringo
$ ringo
>> set = new java.util.HashSet(['foo', 'bar'])
[java.util.HashSet [foo, bar]]
>> for each (var element in Iterator(set)) print(element)
foo
bar
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment