In Java, you can do the following code:
Function<Integer, Integer> times2 = e -> e * 2;
Function<Integer, Integer> squared = e -> e * e;
times2.andThen(squared).apply(4);
What's C++'s equivalent of andThen()
to coin/composite new functors? Thanks.