Skip to content

Instantly share code, notes, and snippets.

@knjname
Last active December 17, 2015 00:59
Show Gist options
  • Select an option

  • Save knjname/5524877 to your computer and use it in GitHub Desktop.

Select an option

Save knjname/5524877 to your computer and use it in GitHub Desktop.
import java.util.function.Function;
public class CurryingExample {
public static void main(String... args){
Function<String, Function<String, String>> concatStr = s -> s2 -> s + s2;
System.out.println(concatStr.apply("Conca").apply("tenated"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment