BooleanCat / go-functional

go-functional is a library of iterators to augment the standard library
MIT License
447 stars 23 forks source link

Add TryCollect and Collect2 consumers and remove CollectErr #130

Closed BooleanCat closed 3 months ago

BooleanCat commented 3 months ago

Please provide a brief description of the change.

This is a breaking change.

Add TryCollect to collect an iter.Seq2[V any, error] into a []V and an error. Iteration terminate at the first error.

Remove CollectErr and replace with the more general Collect2.

Which issue does this change relate to?

None.

Contribution checklist.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (cc19074) to head (7eaa52e).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #130 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 32 32 Lines 398 407 +9 ========================================= + Hits 398 407 +9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.