Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think you might want the opposite of liftE, i.e. to be able to convert any function with two returning values into a function with a single returning value.

Then you can use those functions normally with standard FP tools such as `map` etc.

Yes, the node.js community did something like that with (err, res) and it still does it. Its pretty awful to be unable to use any of the standard library or community library functions (that can error) in a... functional way without wrapping them.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: