BooleanCat / go-functional

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

Add TakeWhile and DropWhile family of iterators #139

Closed BooleanCat closed 4 weeks ago

BooleanCat commented 4 weeks ago

Please provide a brief description of the change.

Behaves in the same way as you'd expect from Python's itertools.

Which issue does this change relate to?

Request on the Go Slack.

Contribution checklist.

Additional context

None.

codecov[bot] commented 4 weeks ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (23eca34) to head (75272b3). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #139 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 32 32 Lines 434 476 +42 ========================================= + Hits 434 476 +42 ```

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