"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pipe = void 0;
function pipe(...fns) {
    return fns.length === 1 ? fns[0] : (input) => fns.reduce(pipeReducer, input);
}
exports.pipe = pipe;
function pipeReducer(prev, fn) {
    return fn(prev);
}