Created
May 7, 2012 17:35
-
-
Save arturaz/2629179 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 iterator = { | |
val rubyIter = raw.directEntrySet().iterator() | |
new Iterator[(IRubyObject, IRubyObject)] { | |
def hasNext = rubyIter.hasNext | |
def next() = { | |
val key = rubyIter.next.asInstanceOf[IRubyObject] | |
val value = raw.fastARef(key) | |
(key, value) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment