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

Add generic version of Sequence for any number type #893

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

atifaziz
Copy link
Member

@atifaziz atifaziz commented Nov 19, 2022

This PR adds a generic version of Sequence as described in #892.

Under .NET 7, Sequence(int, int, int) defers to Sequence<T>(T, T, T) and is therefore tested for when T is int.

@atifaziz atifaziz linked an issue Nov 19, 2022 that may be closed by this pull request
@atifaziz atifaziz marked this pull request as ready for review November 19, 2022 16:08
@codecov
Copy link

codecov bot commented Nov 19, 2022

Codecov Report

Merging #893 (8917f27) into master (b31c7fd) will increase coverage by 0.00%.
The diff coverage is 94.44%.

@@           Coverage Diff           @@
##           master     #893   +/-   ##
=======================================
  Coverage   92.38%   92.39%           
=======================================
  Files         110      110           
  Lines        3441     3456   +15     
  Branches     1020     1022    +2     
=======================================
+ Hits         3179     3193   +14     
- Misses        200      201    +1     
  Partials       62       62           
Impacted Files Coverage Δ
MoreLinq/Sequence.cs 96.29% <94.44%> (-3.71%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@viceroypenguin
Copy link
Contributor

Approved in principle. Will wait to give final approval.

@@ -119,7 +119,7 @@
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>3.3.2</VersionPrefix>
<Authors>MoreLINQ Developers.</Authors>
<TargetFrameworks>net451;netstandard1.0;netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
<TargetFrameworks>net451;netstandard1.0;netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks>
Copy link
Contributor

Choose a reason for hiding this comment

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

Update to include .net7 should be done on a separate PR.

Copy link
Contributor

@viceroypenguin viceroypenguin left a comment

Choose a reason for hiding this comment

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

This PR should wait until v4.0.0, along with .net7 release. Expectation is that v3.4.0 is existing changes plus nullability fixes to include at most .net6 (including conflicting behavior in certain methods). Future improvements should be delayed until after 3.4.0 is released.

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.

Generic Sequence for any number type
2 participants