3 ms·
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 ho
by masklinn 3y ago
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), …