It would be really convenient if pipe and compose accepted an array for an argument, so that these would all become equivalent:
R.pipe(f, [g, h], i)(x)
R.compose(i, [g, h], f)(x)
R.compose(R.converge(i, [g, h]), f)(x)
i(g(f(x)), h(f(x)))
It would give a slightly weird impression if the signature of pipe/compose had been different, with the supplied functions wrapped in an array (#1644), because the outer array would then not have the same meaning as the inner array. But since this is not the case, I think this syntax is nice.
It would be really convenient if
pipeandcomposeaccepted an array for an argument, so that these would all become equivalent:R.pipe(f, [g, h], i)(x)R.compose(i, [g, h], f)(x)R.compose(R.converge(i, [g, h]), f)(x)i(g(f(x)), h(f(x)))It would give a slightly weird impression if the signature of
pipe/composehad been different, with the supplied functions wrapped in an array (#1644), because the outer array would then not have the same meaning as the inner array. But since this is not the case, I think this syntax is nice.