title: Is there a Java equivalent to C#'s 'yield' keyword?
body: <p>I know there is no direct equivalent in Java itself, but perhaps a third party?</p>
  
  <p>It is really convenient. Currently I'd like to implement an iterator that yields all nodes in a tree, which is about five lines of code with yield.</p>