Prelude API
    Preparing search index...

    Variable pipe0Const

    pipe0: Pipe0 = ...

    Creates a function that accepts a value and passes it through a series of transformations. Unlike pipe, this returns a function that will accept the initial value later.

    Input type

    Intermediate and final types in the transformation chain

    A function that takes an input and returns the result of applying all transformations

    const addThenMultiply = G.pipe0(
    (n: number) => n + 2,
    (n: number) => n * 3
    )

    addThenMultiply(5) // (5 + 2) * 3 = 21