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

Refactor RandomSubset internals for DRY, removing closure #1049

Merged
merged 4 commits into from
Nov 19, 2023
Merged

Refactor RandomSubset internals for DRY, removing closure #1049

merged 4 commits into from
Nov 19, 2023

Conversation

viceroypenguin
Copy link
Contributor

This PR updates the implementation of RandomSubsetImpl to remove the unnecessary closure and DRY the instantiation code.

Copy link

codecov bot commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a0f72ab) 92.50% compared to head (93ca56b) 92.50%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1049      +/-   ##
==========================================
- Coverage   92.50%   92.50%   -0.01%     
==========================================
  Files         112      112              
  Lines        3404     3401       -3     
  Branches     1056     1056              
==========================================
- Hits         3149     3146       -3     
  Misses        189      189              
  Partials       66       66              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@atifaziz atifaziz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR!


PS Please avoid the temptation to bundle unrelated changes together.

MoreLinq/Shuffle.cs Outdated Show resolved Hide resolved
MoreLinq/RandomSubset.cs Outdated Show resolved Hide resolved
@atifaziz atifaziz changed the title Simplify RandomSubsetImpl Refactor RandomSubset for DRY, removing closure Nov 19, 2023
@atifaziz atifaziz modified the milestone: 4.1.0 Nov 19, 2023
@atifaziz atifaziz changed the title Refactor RandomSubset for DRY, removing closure Refactor RandomSubset internals for DRY, removing closure Nov 19, 2023
@atifaziz atifaziz merged commit 3de8b3f into morelinq:master Nov 19, 2023
4 checks passed
@viceroypenguin viceroypenguin deleted the subset-impl branch November 20, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants