Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/ramda.js Secret

Created Jul 10, 2019
Embed
What would you like to do?
const phrase = 'Welcome';
const result = R.pipe(
append(' to'),
append(' Functional Programming'),
append(' I hope you like'),
append(' pipelining!'),
removeTheLetter('i'),
makeLetterUpperCase('o'),
makeLetterUpperCase('a'),
makeLetterUpperCase('e'),
removeWordsWithLessThanFourLetters // partial function application
)(phrase);
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
You can’t perform that action at this time.