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

You could actually, iirc if f takes as many parameters as g returns it works out.

In a better langage f would take a Result, and then it can manipulate that however it wants.

Obviously you can also plug in adapters if you need some other composition e.g. g().map(f), g().and_then(f), …



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

Search: