Java tutorial
import java.util.function.IntUnaryOperator; public class Main { public static void main(String[] args) { IntUnaryOperator i = IntUnaryOperator.identity(); System.out.println(i.compose(i).applyAsInt(2)); } }