Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore pipe functions and compose functions in this advanced JavaScript functional programming tutorial. Dive into the creation of compose and pipe functions, learn to handle multiple parameters, and work through practical examples including word count and palindrome checks. Discover how to integrate clone and copy functions, implement currying for partial functions, and insert clone functions as dependencies. Gain a deeper understanding of functional programming concepts through hands-on demonstrations and real-world applications.
Syllabus
Intro
What are compose and pipe functions?
Creating a compose function
Creating a pipe function
Adding a function with multiple parameters
Example: a word count function
Nested pipe function example: palindrome checks
Adding clone / copy functions to compose / pipe
Example 1: Clone function before impure function
Example 2: Curry the function for a partial that is unary
Example 3: Insert the clone function as a dependency
Taught by
Dave Gray