7 terms
A closure is a function bundled with the variables of the scope where it was defined, so it can use them even after that scope has…
Currying transforms a function that takes several arguments into a chain of functions that each take one argument and return the next function.
A higher-order function is a function that takes other functions as arguments or returns a function, a core building block of functional programming.
Immutability in functional programming means data cannot change after creation, so updates produce new values and shared data stays safe to reuse.
A lambda in functional programming is an anonymous function written inline as an expression and passed or returned like any other value.
A monad is a functional programming pattern that wraps values in a context and chains computations through a bind operation obeying three laws.
A pure function always returns the same output for the same input and causes no side effects, the core building block of functional programming.