Programming

Functional programming

Terms

7 terms

  • Closure

    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

    Currying transforms a function that takes several arguments into a chain of functions that each take one argument and return the next function.

  • Higher-order 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

    Immutability in functional programming means data cannot change after creation, so updates produce new values and shared data stays safe to reuse.

  • Lambda

    A lambda in functional programming is an anonymous function written inline as an expression and passed or returned like any other value.

  • Monad

    A monad is a functional programming pattern that wraps values in a context and chains computations through a bind operation obeying three laws.

  • Pure function

    A pure function always returns the same output for the same input and causes no side effects, the core building block of functional programming.