Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created October 18, 2020 22:20
Show Gist options
  • Select an option

  • Save MeetMartin/db5663723d82a97811aa644dbcbc8dfb to your computer and use it in GitHub Desktop.

Select an option

Save MeetMartin/db5663723d82a97811aa644dbcbc8dfb to your computer and use it in GitHub Desktop.
const add = a => b => a + b;
const increaseCounter = counter => add(1)(counter);
increaseCounter(5); // => 6
const pointFreeIncreaseCounter = add(1);
pointFreeIncreaseCounter(5); // => 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment