const pipe = (...ops) => { const _pipe = (a, b) => (arg) => b(a(arg)); let bundle = ops.reduce((prevOp, nextOp) => { return _pipe(prevOp,nextOp); }); return bundle; }
const pipe = (...ops) => { const _pipe = (a, b) => (arg) => b(a(arg)); let bundle = ops.reduce((prevOp, nextOp) => { return _pipe(prevOp,nextOp); }); return bundle; }