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

https://d.puremagic.com/issues/show_bug.cgi?id=12409
That's a subset of accepted parameters. It wouldn't be the right term for classes/structs which declare `opApply`, right?