News for hackers. Stuff that matters.
Re:TypeScript support for ES Next pipeline operator by deckar01 on Friday September 21, 2018 @02:57PM (#18041847)
Neither. Just use a function. You don't need a dedicated operator in the language's syntax to composite functions.

    const foo = pipeline(
        bar,
        baz,
        x => x + 1,
    )
    foo(42)
Re:TypeScript support for ES Next pipeline operator by jahewson on Friday September 21, 2018 @03:00PM (#18041867)
Now try writing the type declaration for your pipeline function...
Re:TypeScript support for ES Next pipeline operator by deckar01 on Friday September 21, 2018 @03:47PM (#18042155)

    pipeline : (...fns : Function[]) => Function
Re:TypeScript support for ES Next pipeline operator by roblabla on Friday September 21, 2018 @03:11PM (#18041936)
a -> (a -> b) -> (b -> c) -> c