Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure takeFirst and takeLast doesn't crash when n > length #156

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

passsy
Copy link
Collaborator

@passsy passsy commented Apr 12, 2022

This matches the behaviour of Kotlins takeFirst/takeLast

the sublist version caused RangeErrors

This matches the behaviour of Kotlins `takeFirst`/`takeLast`
@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Merging #156 (4320730) into master (b781ef5) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #156   +/-   ##
=======================================
  Coverage   97.80%   97.80%           
=======================================
  Files          13       13           
  Lines         775      775           
=======================================
  Hits          758      758           
  Misses         17       17           
Impacted Files Coverage Δ
lib/src/iterable.dart 99.57% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@passsy passsy merged commit d4eb3bd into master Apr 12, 2022
@passsy passsy deleted the takefirstlast branch April 12, 2022 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant