Java lambda more than 1 parameter - Stack Overflow

PHOTO EMBED

Mon Oct 31 2022 22:58:06 GMT+0000 (Coordinated Universal Time)

Saved by @arnojunio #java

@FunctionalInterface
interface Function6<One, Two, Three, Four, Five, Six> {
    public Six apply(One one, Two two, Three three, Four four, Five five);
}

public static void main(String[] args) throws Exception {
    Function6<String, Integer, Double, Void, List<Float>, Character> func = (a, b, c, d, e) -> 'z';
}
content_copyCOPY

https://stackoverflow.com/questions/27872387/can-a-java-lambda-have-more-than-1-parameter