Similar to this question Composing a Java Function and Consumer. What is the best way to functionally compose a java BiFunction and a Consumer? For example given some BiFunction<String, String,String> f and some Consumer c then doing f.andThen(c) ?
BiFunction<String, String, String> a = (a,b)->{return a+b;}
Consumer<String> b = x -> System.out.println(x);
Consumer<String> composed = a.andThen(b);