List of usage examples for java.util.function IntUnaryOperator identity
static IntUnaryOperator identity()
From source file:Main.java
public static void main(String[] args) { IntUnaryOperator i = IntUnaryOperator.identity(); System.out.println(i.compose(i).applyAsInt(2)); }
From source file:org.briljantframework.array.AbstractIntArray.java
@Override public int reduce(int identity, IntBinaryOperator reduce) { return reduce(identity, reduce, IntUnaryOperator.identity()); }