Answer the question
In order to leave comments, you need to log in
How to write a ternary function through a lambda without using a custom functional interface?
Hello. It is necessary to write the function f=x+y+z in the body of the method through lambdas.
Something like this
public int fnk(x,y,z){
x=(x,y,z)->{x+y+z};
return x;
}
Answer the question
In order to leave comments, you need to log in
That's what I meant
Function<Integer, Function<Integer, Function<Integer, Integer>>> calculation
= x -> y -> z -> x + y + z;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question