Java tutorial
import java.util.function.BiFunction; import java.util.function.Function; public class Main { public static void main(String[] args) { BiFunction<String, String, String> bi = (x, y) -> { return x + y; }; Function<String, String> f = x -> x + " new"; System.out.println(bi.andThen(f).andThen(f).apply("java2s.com", " tutorial")); } }