Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
RubyEnumerator implements java.util.Iterator #4054
feels like a good fit and this makes enumerator usable with Java 8 (with some boilerplate) :
... ideally some more integration would be handy but JRuby would need compiling under Java 8 for easy :
Ruby enumerator (and thus Ruby array) usability with 8 streaming is confirmed with test-cases.
also possible by hooking up