Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created April 20, 2019 06:57
Show Gist options
  • Select an option

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

Select an option

Save MeetMartin/5449b29f83a3182d08ce2e7e53de213f to your computer and use it in GitHub Desktop.
const plusA = s => s + 'A';
const plusB = s => s + 'B';
const composed1 = s => compose(plusA, plusB)(s);
const composed2 = s => composePipe(plusA, plusB)(s);
composed1(''); // BA
composed2(''); // AB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment