Skip to content

Instantly share code, notes, and snippets.

@DeepSpawn
Created September 19, 2016 21:48
Show Gist options
  • Save DeepSpawn/917031829528eeba1a3eb0ce78dd0edd to your computer and use it in GitHub Desktop.
Save DeepSpawn/917031829528eeba1a3eb0ce78dd0edd to your computer and use it in GitHub Desktop.
static BiFunction<Integer, Integer, Integer> add = (a, b) -> a + b;
static Function<Integer, Function<Integer, Integer>> addCurried = a -> b -> add.apply(a,b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment