-
-
Save gdyrrahitis/512007bcd3bedabdb48883e600cfef9e to your computer and use it in GitHub Desktop.
This file contains 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 phrase = 'Welcome'; | |
const result = phrase | |
|> append(' to') | |
|> append(' Functional Programming') | |
|> append(' I hope you like') | |
|> append(' pipelining!') | |
|> removeTheLetter('i') | |
|> makeLetterUpperCase('o') | |
|> makeLetterUpperCase('a') | |
|> makeLetterUpperCase('e') | |
|> removeWordsWithLessThanFourLetters // partial function application | |
console.log(result); | |
// prints: WElcOmE FunctOnAl PrOgrAmmng ppElnng! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment