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

Improve ToArrayByIndex Operator #186

Merged
merged 4 commits into from
Feb 2, 2023
Merged

Improve ToArrayByIndex Operator #186

merged 4 commits into from
Feb 2, 2023

Conversation

viceroypenguin
Copy link
Owner

@viceroypenguin viceroypenguin commented Feb 2, 2023

This PR rewrites one of the overloads of ToArrayByIndex to avoid unnecessary checks and simplify the final data collection. Additionally, it a) corrects error checking code to use Guard, b) improves xml documentation, and c) corrects nullability specification.

Fixes #184

@viceroypenguin viceroypenguin enabled auto-merge (squash) February 2, 2023 20:12
@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Base: 86.04% // Head: 86.06% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (f3c6d6d) compared to base (1bb54ce).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #186      +/-   ##
==========================================
+ Coverage   86.04%   86.06%   +0.01%     
==========================================
  Files         197      197              
  Lines        5782     5782              
  Branches     1360     1358       -2     
==========================================
+ Hits         4975     4976       +1     
+ Misses        460      456       -4     
- Partials      347      350       +3     
Impacted Files Coverage Δ
...ce/SuperLinq/Collections/UpdatablePriorityQueue.cs 78.02% <ø> (ø)
Source/SuperLinq/CopyTo.cs 96.36% <ø> (ø)
Source/SuperLinq/Where.cs 100.00% <ø> (ø)
Source/SuperLinq.Async/Split.cs 76.66% <100.00%> (+13.33%) ⬆️
Source/SuperLinq/ToArrayByIndex.cs 100.00% <100.00%> (ø)
Source/SuperLinq.Async/Lead.cs 70.00% <0.00%> (-10.00%) ⬇️
Source/SuperLinq.Async/Lag.cs 80.00% <0.00%> (-5.00%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@viceroypenguin viceroypenguin merged commit 7d68623 into master Feb 2, 2023
@viceroypenguin viceroypenguin deleted the toarraybyindex branch February 2, 2023 20:20
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.

Simplify ToArrayByIndex
1 participant