Created
April 20, 2019 06:57
-
-
Save MeetMartin/5449b29f83a3182d08ce2e7e53de213f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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