3 ms·
How's it different from other `pipe` implementations around, e.g. the one from `fp-ts`? https://gcanti.github.io/fp-ts/modules/function.ts.html#pipe https://gc
by epolanski 3y ago
How's it different from other `pipe` implementations around, e.g. the one from `fp-ts`?
https://gcanti.github.io/fp-ts/modules/function.ts.html#pipe https://gcanti.github.io/fp-ts/modules/function.ts.html#pipe
- FroLeMageBlanc 3y agoThe pipe function of `fp-ts` doesn’t have direct access to methods and properties of the pipe output like Verticalize. You have to wrap them into anonymous functions. Same with promises.
- epolanski 3y agoYou can always pipe( 2, double, x => x.toString() ) I love your approach too, it's really more of a pipe operator than a `pipe` function which expects the pipeline to happen on the arguments side.