Hacker News new | ask | show | jobs
by epolanski 994 days 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

1 comments

The 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.
You 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.