function pipe(...functions) { (async () => { let accum; for (const fn of functions) accum = await fn(accum); }()); }