Open
Description
There are two methods in java.util.function.Function
: compose
and andThen
. But Functions
has only compose
. Can we add andThen
too?
It can be useful for chaining of method references (and more natural than compose
):
Function<Employee, String> f = Functions.andThen(Employee::getName, String::toLowerCase);
Activity