Skip to content

Add Span min max - #573

Merged
SimonCropp merged 3 commits into
mainfrom
span-min-max
Aug 12, 2026
Merged

Add Span min max#573
SimonCropp merged 3 commits into
mainfrom
span-min-max

Conversation

@SimonCropp

Copy link
Copy Markdown
Owner

No description provided.

New in .NET 11 (dotnet/runtime#128306). Four MemoryExtensions methods:
Min/Max, each with an optional IComparer<T> overload.

Ported from MemoryExtensions.MinMax.cs minus the SIMD fast paths, so
semantics match: nulls are skipped, an empty span returns null for
reference and nullable value types and throws InvalidOperationException
for non-nullable value types, and a null comparer falls back to
Comparer<T>.Default.
@SimonCropp SimonCropp added this to the 11.1.0 milestone Aug 11, 2026
@SimonCropp
SimonCropp merged commit 34587f4 into main Aug 12, 2026
4 checks passed
@SimonCropp
SimonCropp deleted the span-min-max branch August 12, 2026 03:41
This was referenced Aug 12, 2026
This was referenced Aug 12, 2026
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