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 Permutations into an iterator method #1054

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

atifaziz
Copy link
Member

In a similar vein to #1052, this PR refactors the Permutations implementation into a simple, single iterator method. It removes/inlines all helper methods, including NestedLoops, uses precomputed factorials and refreshes comments.

@atifaziz atifaziz added this to the 4.1.0 milestone Nov 27, 2023
@atifaziz atifaziz merged commit 0e154ef into morelinq:master Nov 27, 2023
2 checks passed
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (4272b2b) 92.49% compared to head (0e154ef) 92.11%.
Report is 1 commits behind head on master.

Files Patch % Lines
MoreLinq/Permutations.cs 72.91% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1054      +/-   ##
==========================================
- Coverage   92.49%   92.11%   -0.39%     
==========================================
  Files         113      112       -1     
  Lines        3385     3372      -13     
  Branches     1057     1051       -6     
==========================================
- Hits         3131     3106      -25     
- Misses        187      199      +12     
  Partials       67       67              

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

@atifaziz atifaziz deleted the refactor-permutation branch November 27, 2023 08:55
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.

1 participant