In functional programming, it often needs compose several functions together.
But when one UnaryOperator compose another UnaryOperator, it returns a Function, it will get compile error if the method expecting UnaryOperator as parameter.
So when declare a method, prefer to using Function
No comments:
Post a Comment