BooleanCat / go-functional

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

Support FromSlice and FromMap helpers in itx #127

Closed BooleanCat closed 1 month ago

BooleanCat commented 1 month ago

Please provide a brief description of the change.

Using itx.From(slices.Values(slice)) will be a fairly common pattern so this is to make that a bit less verbose with itx.FromSlice(slice) (and same for FromMap).

Which issue does this change relate to?

None.

Contribution checklist.

Additional context

N/A.

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (cf660a4) to head (42b7a4d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #127 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 32 32 Lines 434 438 +4 ========================================= + Hits 434 438 +4 ```

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