Function composition

/ˈfʌŋkʃən ˌkɑmpəˈzɪʃən/ noun

Definition

A programming technique where two or more functions are combined to create a new function, where the output of one function becomes the input of the next. It follows the mathematical concept (f ∘ g)(x) = f(g(x)).

Etymology

From Latin 'componere' meaning to put together, borrowed from mathematical function composition developed in the 18th century. The programming concept emerged with functional languages in the 1950s-60s, emphasizing the mathematical foundation where complex operations are built by combining simpler functions.

Kelly Says

Function composition is like building a factory assembly line where each station does one simple task perfectly - data flows from raw materials through each specialized function until you get the finished product! This is why Unix pipes are so powerful: 'cat file | grep error | sort | uniq' composes four simple functions into a complex data processing pipeline.

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.