Community
Participate
Working Groups
In addition to the Funciton types in Functions we should provide support for Procedures, which are just like functions but without a retur value. They area useful in all kinds of side effect situations like. e.g. foreach or the new builder syntax.
Agree (for what it's worth ;)) Adding interface VoidFunction1<Param> { void apply(Param p); } to o.e.x.x.l.Functions and a o.e.x.x.l.IterableExtensions#forEach with signature public static final <T> void forEach(Iterable<T> iterable, VoidFunction1<? super T> function) should do the trick and saves everyone from having to write .forEach(it|{it.doSomething; null})
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0