fix Issue 12409 - Add "each" function as found in Ruby and jQuery

https://d.puremagic.com/issues/show_bug.cgi?id=12409
Please call it something else. It has nothing in common with C++ iterators. The documentation on opApply never calls them iterators, it calls them `apply` functions.

http://dlang.org/statement.html#foreach-with-ranges