Skip to content

Instantly share code, notes, and snippets.

@BiosBoy
Created September 8, 2020 20:52
Show Gist options
  • Select an option

  • Save BiosBoy/9fab55a4a2003fa65cca558770ec7c14 to your computer and use it in GitHub Desktop.

Select an option

Save BiosBoy/9fab55a4a2003fa65cca558770ec7c14 to your computer and use it in GitHub Desktop.
const carr = a => b => !b ? a : carr(a + b)
const result = carr(1)(2)(12)(22)()
console.log(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment