I think there should be a API for unwrapping Results into tuples
thelinuxlich opened this issue · comments
So it would be something like:
const [err, res] = val.unwrapTuple() // golang style
I like the idea. Perhaps as intoTuple
to fit with the current naming convention. I'll look to add this when I'm a little less busy, unless you want to make a PR.
yeah, intoTuple would be neat
intoTuple
has been added in 1.1.0, which has been published to npm. Enjoy!