Composition is a [[Higher-Order]] [[Binary Operation]] between two [[Function|Functions]] $f, g$ defined as the function that applies an input to $g$ then to $f$, denoted by $f \circ g$.
$\huge
$
$\huge(g \circ f)(x) = g(f(x))$
$\huge \begin{align}
f&: A \to B \\
g&: B \to C \\
f\circ g &: A \to C
\end{align}
$
[[Composition]] is always [[Associative]]:
$\huge f\circ g\circ h = (f \circ g) \circ h = f\circ(g\circ h) $
>[!example]-
>![[../../00 Asset Bank/Pasted image 20241005161215.png|invert_Sepia]]