Skip to main content

Function.<<

<<that

Group: Operators

Documentation​

Composes two functions together, for f << g creating the function composition f ∘ g (equivalent to x -> f (g x)).

Arguments​

  • that: The function to compose with self.

Examples​

Multiply by 2 and then add 1 as a function applied to 2.​

      (+1 << *2) 2