Skip to content

Instantly share code, notes, and snippets.

@lowenthal-jason
Created January 10, 2017 21:14
Show Gist options
  • Save lowenthal-jason/fbaeec5d566ea3d07ed1e41de4dc4ca0 to your computer and use it in GitHub Desktop.
Save lowenthal-jason/fbaeec5d566ea3d07ed1e41de4dc4ca0 to your computer and use it in GitHub Desktop.
def factorial = { n -> (n == 1) ? 1G : n * call(n - 1) }
println factorial(100G) + 1G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment