MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

functional/CurriedIntAdd.java:8–13  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

6
7public class CurriedIntAdd {
8 public static void main(String[] args) {
9 IntFunction<IntUnaryOperator>
10 curriedIntAdd = a -> b -> a + b;
11 IntUnaryOperator add4 = curriedIntAdd.apply(4);
12 System.out.println(add4.applyAsInt(5));
13 }
14}
15/* Output:
169

Callers

nothing calls this directly

Calls 1

applyMethod · 0.65

Tested by

no test coverage detected