Skip to content

Instantly share code, notes, and snippets.

@ahgittin
Created September 16, 2015 11:35
Embed
What would you like to do?
interface Function2 { int apply(int a, int b); }
int factorial(int n) { return applyFromOneToN(new Function2() { int apply(int a, int b) { return a*b; } }, n); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment