improve functional style
improve functional style

- functional.each supports iterator argument as well as sequence
- use functional.each throughout std.functional methods for iterator support
- use more expressive functions instead of functional.each everywhere else

luaposix/luaposix