Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
FroLeMageBlanc
· 3y ago · 0 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.
Comments
[–]
epolanski
3y ago
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.