Skip to content

Instantly share code, notes, and snippets.

@DeepSpawn
Created September 19, 2016 21:51
Show Gist options
  • Save DeepSpawn/e0a0e1a052e10afc121b98ba1547b5a9 to your computer and use it in GitHub Desktop.
Save DeepSpawn/e0a0e1a052e10afc121b98ba1547b5a9 to your computer and use it in GitHub Desktop.
public static void curryDemo(){
Function<Integer,Integer> add5 = addCurried.apply(5);
IntStream.range(1,10)
//.map(i -> add(i,5))
.map(add5::apply)
.boxed()
.collect(Collectors.toList());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment