These are chat archives for ramda/ramda
It totally messes me up when I do write promises:
new Promise((resolve, reject) => ...
I was doing
new Promise((reject, resolve) => ...
Futureis far nicer to work with
avoid most of the complexity of promises.
what did you have in mind there?
A low-effort solution is probably something like
pipe(f, g, pipeP(h, i))
but IIRC pipeP and composeP are (probably?) being deprecated
so you could do:
const then = f => p => p.then(f) const catchError = f => p => p.catch(f) pipe(f, g, h, then(i), catchError(ef))
Presumably the gold standard futurized solution is like:
const j = pipe(f, g, futurize(Future)(h), map(i)) j(x).fork(errorF, successF)