Add Result.all and Result.allSettled combinators (+ async versions) to work with arrays of Results, similar to Promise.all and Promise.allSettled.
When working with multiple Results, you often want to either combine them and fail-fast on the first error (Result.all) or collect all results regardless of outcome (Result.allSettled). Similar to .combine and .combineWithAllErrors from neverthrow.
Would also add async versions: Result.allAsync and Result.allSettledAsync.
I've got a version of this working if you want to see a PR.
Add
Result.allandResult.allSettledcombinators (+ async versions) to work with arrays of Results, similar toPromise.allandPromise.allSettled.When working with multiple Results, you often want to either combine them and fail-fast on the first error (
Result.all) or collect all results regardless of outcome (Result.allSettled). Similar to.combineand.combineWithAllErrorsfrom neverthrow.Would also add async versions:
Result.allAsyncandResult.allSettledAsync.I've got a version of this working if you want to see a PR.