Result.all<T, E extends BaseError>(results: readonly Result<T, E>[]): Result<T[], E>
Combines multiple Results into a single Result containing an array.
If all Results are Ok, returns Ok with an array of all values. If any Result is Err, returns the first Err encountered.
E extends BaseError
The type of the errors