Skip to main content

Function.>>

>>that

Group: Operators

Documentation

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

Arguments

  • that: The function to compose with self.

Examples

Add one and then multiply by two as a function applied to 2.

      (+1 >> *2) 2