Today I learned about
for (T item : ()->someIterator){...}
in Java. Scala gets it better, btw. Apache Commons has workarounds. But why not think about it in the standard lib?Tags: