yegor256 / cactoos

Object-Oriented Java primitives, as an alternative to Google Guava and Apache Commons
https://www.cactoos.org
MIT License
737 stars 163 forks source link

Exchange constructor and method argument ForEachXXX classes #1622

Open victornoel opened 3 years ago

victornoel commented 3 years ago

Instead of calling new ForEach(proc).exec(iterable), one should be able to call new ForEach(iterable).exec(proc).

Same for the other ForEach prefixed classes.

The advantage is twofold:

victornoel commented 3 years ago

@0crat in