List of usage examples for java.util.function IntUnaryOperator compose
default IntUnaryOperator compose(IntUnaryOperator before)
From source file:Main.java
public static void main(String[] args) { IntUnaryOperator i = (x) -> x * x; System.out.println(i.compose(i).applyAsInt(2)); }
From source file:Main.java
public static void main(String[] args) { IntUnaryOperator i = IntUnaryOperator.identity(); System.out.println(i.compose(i).applyAsInt(2)); }