on 05c1914 help sign in
9 lines 179 B history raw
2const seq = num => Array.from(Array(num), (_, i) => i)
4const compose = (...fs) => fs.reduceRight((pF, nF) => (...args) => nF(pF(...args)), v => v)
6export {
7 compose,
8 seq,
9}