NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #516 most downloaded on NuGet
This project enhances LINQ to Objects with the following methods: Acquire, Aggregate (some EXPERIMENTAL), AggregateRight, Append, Assert, AssertCount, AtLeast, AtMost, Await (EXPERIMENTAL), AwaitCompletion (EXPERIMENTAL), Backsert, Batch, Cartesian, Choose, CountBetween, CompareCount, CountBy, CountDown, Consume, DistinctBy, Duplicates, EndsWith, EquiZip, Evaluate, Exactly, ExceptBy, Exclude, FallbackIfEmpty, FillBackward, FillForward, Flatten, Fold, ForEach, From, FullGroupJoin, FullJoin, Generate, GenerateByIndex, GroupAdjacent, Index, IndexBy, Insert, Interleave, Lag, Lead, LeftJoin, Maxima, Memoize (EXPERIMENTAL), Merge (EXPERIMENTAL), Minima, Move, OrderBy, OrderedMerge, Pad, PadStart, Pairwise, PartialSort, PartialSortBy, Partition, Permutations, Pipe, Prepend, PreScan, Random, RandomDouble, RandomSubset, Rank, RankBy, Repeat, Return, RightJoin, RunLengthEncode, Scan, ScanBy, ScanRight, Segment, Sequence, Shuffle, SkipLast, SkipLastWhile, SkipUntil, Slice, SortedMerge, Split, StartsWith, Subsets, TagFirstLast, TakeEvery, TakeLast, TakeUntil, ThenBy, ToArrayByIndex, ToDataTable, ToDelimitedString, ToDictionary, ToHashSet, ToLookup, Trace, Transpose, TraverseBreadthFirst, TraverseDepthFirst, TrySingle (EXPERIMENTAL), Unfold, Window, WindowLeft, WindowRight, ZipLongest, ZipShortest
Latest stable
4.4.0
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 9 days to 3.2 years
Most releases are documented
notes for 26 of 33 stable releases
2 versions withdrawn
withdrawn after publishing
127 years old
52 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
 ![Documentation]
Sequence for any number type by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/893:public static IEnumerable<T> Sequence<T>(T start) where T : INumber<T>, IMinMaxValue<T>
public static IEnumerable<T> Sequence<T>(T start, T stop) where T : INumber<T>
public static IEnumerable<T> Sequence<T>(T start, T stop, T step) where T : INumber<T>
SkipLastWhile extension by @ArmoryNode in https://github.com/morelinq/MoreLINQ/pull/1085EndsWith by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1082CountBy in .NET 9+ by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1092Your coding agent can read these notes before it upgrades. Set up the MCP server →
Sequence for any number type by @atifaziz in #893:
public static IEnumerable<T> Sequence<T>(T start) where T : INumber<T>, IMinMaxValue<T>
public static IEnumerable<T> Sequence<T>(T start, T stop) where T : INumber<T>
public static IEnumerable<T> Sequence<T>(T start, T stop, T step) where T : INumber<T>SkipLastWhile extension by @ArmoryNode in #1085EndsWith by @atifaziz in #1082CountBy in .NET 9+ by @atifaziz in #1092 ![Documentation]
This is a maintenance release that introduces no new APIs.
This is a maintenance release that introduces no new APIs.
This is a bug fix and maintenance release.
This is a bug fix and maintenance release.
Merge by @atifaziz in #1059 🪲This is a bug fix and maintenance release.
Merge by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1059 🪲@julienasp made their first contribution in #1037
DuplicatesSubsets to-do about clearer members names by @atifaziz in #1048RandomSubset internals for DRY, removing closure by @viceroypenguin in #1049this qualifier by @atifaziz in #1050Duplicates extension by @julienasp in #1037ToDictionary() in net8+ by @viceroypenguin in #1040EqualityComparer<T>.Create from .NET 8 by @atifaziz in #1051Subsets core into an iterator method by @atifaziz in #1052Permutations into an iterator method by @atifaziz in #1054DuplicatesSubsets to-do about clearer members names by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1048RandomSubset internals for DRY, removing closure by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/1049this qualifier by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1050Duplicates extension by @julienasp in https://github.com/morelinq/MoreLINQ/pull/1037ToDictionary() in net8+ by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/1040EqualityComparer<T>.Create from .NET 8 by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1051Subsets core into an iterator method by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1052Permutations into an iterator method by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1054Since this a major release, some source and binary breaking changes that are listed below were introduced. Please read the details to see if you're af…
This release introduces an experimental version of Batch that allows use of an array pool for batches, which can especially help reduce (potentially LOH) allocations for very large batch sizes.
New aliases are introduced for the following existing methods because they conflicted with identically named methods introduced in .NET 6.0, but which differ in definition and behaviour:
The superseded methods have been marked obsolete and will most probably be removed in a future version. For more details, see #1018.
In a similar vein, this release also retires the following extension methods that are now part of .NET proper and which have identical names and behaviour:
AppendBatchConcatDistinctByPrependSkipLastTakeLastToHashSetThis helps to prevent ambiguity errors during compilation when System.Linq and MoreLinq namespaces are imported together in a file or a namespace. The retirement is done such that the above methods appear as regular static methods rather than extension methods depending on the compilation target. This helps to maintain source as well as binary compatibility. Special thanks to @viceroypenguin for helping with this (see #945 for more details). The upshot is that projects that prefer to import the MoreLinq namespace rather than individual extensions can simply do so without running into ambiguity compilation errors. However, do bear in mind that this does not prevent future conflicts from appearing should more of MoreLINQ's methods find their way into .NET.
Since this a major release, some source and binary breaking changes that are listed below were introduced. Please read the details to see if you're affected.
Interleave shouldn't validate otherSequences members #1029Minima & Maxima to supersede MinBy & MaxBy #1018Windowed that's been obsolete since 3.0 #1016Concat that's been obsolete since 3.0 #993ToDataTable cannot be null #802Subsets(0) should return an empty set #645Batch should return IEnumerable<T[]> #98Concat method by @pflajszer in #1002FillForward when filler is null by @atifaziz in #1006ToDataTable paths by @atifaziz in #1007ToDataTable implementation by @atifaziz in #1008SortedMerge: Test do not call MoveNext eagerly by @Orace in #735EnableGenerateDocumentationFile warning as workaround for IDE0005 by @atifaziz in #1013Batch to return arrays by @atifaziz in #1014Subsets so it returns an empty set when k = 0 by @Orace in #646Windowed that's superseded by Window by @atifaziz in #1017expressions argument of ToDataTable by @atifaziz in #1021Minima & Maxima as successors to MinBy & MaxBy by @atifaziz in #1019otherSequences argument of Interleave by @atifaziz in #1031Pad/PadStart width is invalid by @atifaziz in #1030This release introduces an experimental version of Batch that allows use of an array pool for batches, which can especially help reduce (potentially LOH) allocations for very large batch sizes.
New aliases are introduced for the following existing methods because they conflicted with identically named methods introduced in .NET 6.0, but which differ in definition and behaviour:
The superseded methods have been marked obsolete and will most probably be removed in a future version. For more details, see #1018.
In a similar vein, this release also retires the following extension methods that are now part of .NET proper and which have identical names and behaviour:
AppendBatchConcatDistinctByPrependSkipLastTakeLastToHashSetThis helps to prevent ambiguity errors during compilation when System.Linq and MoreLinq namespaces are imported together in a file or a namespace. The retirement is done such that the above methods appear as regular static methods rather than extension methods depending on the compilation target. This helps to maintain source as well as binary compatibility. Special thanks to @viceroypenguin for helping with this (see #945 for more details). The upshot is that projects that prefer to import the MoreLinq namespace rather than individual extensions can simply do so without running into ambiguity compilation errors. However, do bear in mind that this does not prevent future conflicts from appearing should more of MoreLINQ's methods find their way into .NET.
Since this a major release, some source and binary breaking changes that are listed below were introduced. Please read the details to see if you're affected.
Interleave shouldn't validate otherSequences members https://github.com/morelinq/MoreLINQ/issues/1029Minima & Maxima to supersede MinBy & MaxBy https://github.com/morelinq/MoreLINQ/issues/1018Windowed that's been obsolete since 3.0 https://github.com/morelinq/MoreLINQ/issues/1016Concat that's been obsolete since 3.0 https://github.com/morelinq/MoreLINQ/issues/993ToDataTable cannot be null https://github.com/morelinq/MoreLINQ/issues/802Subsets(0) should return an empty set https://github.com/morelinq/MoreLINQ/issues/645Batch should return IEnumerable<T[]> https://github.com/morelinq/MoreLINQ/issues/98Concat method by @pflajszer in https://github.com/morelinq/MoreLINQ/pull/1002FillForward when filler is null by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1006ToDataTable paths by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1007ToDataTable implementation by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1008SortedMerge: Test do not call MoveNext eagerly by @Orace in https://github.com/morelinq/MoreLINQ/pull/735EnableGenerateDocumentationFile warning as workaround for IDE0005 by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1013Batch to return arrays by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1014Subsets so it returns an empty set when k = 0 by @Orace in https://github.com/morelinq/MoreLINQ/pull/646Windowed that's superseded by Window by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1017expressions argument of ToDataTable by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1021Minima & Maxima as successors to MinBy & MaxBy by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1019otherSequences argument of Interleave by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1031Pad/PadStart width is invalid by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/1030This is a bug fix and maintenance release.
This is a bug fix and maintenance release.
This is a bug fix and maintenance release.
This is a bug fix and maintenance release.
Permutations for when source length is >12 by @atifaziz in #979 🪲This is a bug fix and maintenance release.
Permutations for when source length is >12 by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/979 🪲This release notably adds nullable reference type annotations (see #582 and #803 ), the two experimental operators below and fixes a few bugs :
This release notably adds nullable reference type annotations (see #582 and #803), the two experimental operators below and fixes a few bugs:
Merge (experimental)Batch overloads using an array pool (experimental)While there are no breaking API changes in this release, the following changes will affect users using on .NET versions that have reached end-of-life:
OrderedMerge: add tests by @Orace in #736IReadOnlyCollection<T> too by @leandromoh in #750Interleave: Do not call GetEnumerator eagerly by @Orace in #730LastOrDefault for extrema sequence by @atifaziz in #761MinBy/MaxBy by @atifaziz in #765System.Linq for async streams by @atifaziz in #781TrySingle signature with honest nullable annotations by @atifaziz in #801FallbackIfEmpty by @sid-6581 in #808Pad* signatures with more honest nullable annotations by @atifaziz in #804Lag & Lead signatures with more honest nullable annotations by @atifaziz in #805ReverseComparer signature with more honest nullable annotations by @sid-6581 in #807GroupAdjacent null key handling bug by @atifaziz in #810FullGroupJoin signature with more honest nullable annotations by @sid-6581 in #806Batch does not reuse internal array by @leandromoh in #820README by @GitHubPang in #828null check in Batch method by @MateoMiller in #846Flatten signature parts to be null-oblivious by @atifaziz in #847Batch overload by @atifaziz in #849ToDictionary to notnull by @atifaziz in #852CountBy/ScanBy by @atifaziz in #855+= to increment by @atifaziz in #869MayBeNull with ? in IExtremaEnumerable members by @atifaziz in #872Flatten tests by @atifaziz in #875Lookup + Grouping from .NET 7 sources by @atifaziz in #879Batch overloads using an array pool by @atifaziz in #856#nullable enable on tests by @viceroypenguin in #888Subject by @atifaziz in #891Memoize documentation by @viceroypenguin in #895Partition by @viceroypenguin in #897Partition exceptions by @viceroypenguin in #886Partition by @viceroypenguin in #896Memoize as expression by @viceroypenguin in #894Partition Nullability by @viceroypenguin in #881Zip* docs by @viceroypenguin in #887ZipLongest by @viceroypenguin in #900*Zip* tests by @atifaziz in #908Rank comparer argument by @atifaziz in #913ToDataTable expressions argument by @atifaziz in #914! with debug assertion in Permutations by @atifaziz in #917LinkedList in Interleave to avoid many null checks by @Orace in #726Interleave tests by @Orace in #728Comparer by @atifaziz in #921Permutations by @atifaziz in #925AssertCount and Fold by @atifaziz in #929TagFirstLast by @Orace in #928ToArrayByIndex by @atifaziz in #932TagFirstLast implementation for speed by @Orace in #643Note truncated.
This release notably adds nullable reference type annotations (see #582 and #803), the two experimental operators below and fixes a few bugs:
Merge (experimental)Batch overloads using an array pool (experimental)While there are no breaking API changes in this release, the following changes will affect users using on .NET versions that have reached end-of-life:
OrderedMerge: add tests by @Orace in https://github.com/morelinq/MoreLINQ/pull/736IReadOnlyCollection<T> too by @leandromoh in https://github.com/morelinq/MoreLINQ/pull/750Interleave: Do not call GetEnumerator eagerly by @Orace in https://github.com/morelinq/MoreLINQ/pull/730LastOrDefault for extrema sequence by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/761MinBy/MaxBy by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/765System.Linq for async streams by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/781TrySingle signature with honest nullable annotations by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/801FallbackIfEmpty by @sid-6581 in https://github.com/morelinq/MoreLINQ/pull/808Pad* signatures with more honest nullable annotations by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/804Lag & Lead signatures with more honest nullable annotations by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/805ReverseComparer signature with more honest nullable annotations by @sid-6581 in https://github.com/morelinq/MoreLINQ/pull/807GroupAdjacent null key handling bug by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/810FullGroupJoin signature with more honest nullable annotations by @sid-6581 in https://github.com/morelinq/MoreLINQ/pull/806Batch does not reuse internal array by @leandromoh in https://github.com/morelinq/MoreLINQ/pull/820README by @GitHubPang in https://github.com/morelinq/MoreLINQ/pull/828null check in Batch method by @MateoMiller in https://github.com/morelinq/MoreLINQ/pull/846Flatten signature parts to be null-oblivious by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/847Batch overload by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/849ToDictionary to notnull by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/852CountBy/ScanBy by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/855+= to increment by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/869MayBeNull with ? in IExtremaEnumerable members by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/872Flatten tests by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/875Lookup + Grouping from .NET 7 sources by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/879Batch overloads using an array pool by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/856#nullable enable on tests by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/888Subject by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/891Memoize documentation by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/895Partition by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/897Partition exceptions by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/886Partition by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/896Memoize as expression by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/894Partition Nullability by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/881Zip* docs by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/887ZipLongest by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/900*Zip* tests by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/908Rank comparer argument by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/913ToDataTable expressions argument by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/914! with debug assertion in Permutations by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/917LinkedList in Interleave to avoid many null checks by @Orace in https://github.com/morelinq/MoreLINQ/pull/726Interleave tests by @Orace in https://github.com/morelinq/MoreLINQ/pull/728Comparer by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/921Permutations by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/925AssertCount and Fold by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/929TagFirstLast by @Orace in https://github.com/morelinq/MoreLINQ/pull/928ToArrayByIndex by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/932TagFirstLast implementation for speed by @Orace in https://github.com/morelinq/MoreLINQ/pull/643Pairwise test by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/937Exclude to not call MoveNext past end of sequence by @Orace in https://github.com/morelinq/MoreLINQ/pull/692CountDown by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/942ListLike/CollectionLike by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/948TestingSequence assertions by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/936*Like types by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/949message in Debug.Assert by @i3arnon in https://github.com/morelinq/MoreLINQ/pull/959ToDelimitedString by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/966Batch by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/965Fold Implementation by @viceroypenguin in https://github.com/morelinq/MoreLINQ/pull/961Fold doc by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/968Fold entirely in its own terms by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/969ToDelimitedString) by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/971AssertCount by @atifaziz in https://github.com/morelinq/MoreLINQ/pull/972This is a minor bug fix release that primarily addresses a regression with Batch that was introduced in version 3.3.1 .
This is a minor bug fix release that primarily addresses a regression with Batch that was introduced in version 3.3.1.
3.3.1 milestone for changes in this release
And lots of bug fixes. 🐛
Nothing published for this version
 ![Documentation]
Aggregate (a second design based on accumulator comprehensions lives in the experimental namespace)IndexByScanByIDisposable.Dispose implementations are meant to ignore all calls after the first so this change should have no compatibility issues. ![Documentation]
This is bug fix release that addresses issue #564.
For a more detailed list of changes in this release, see:
 ![Documentation]
This release primarily adds a new overload for Flatten.
For a more detailed list of changes in this release, see:
For a complete list and details, see issues tagged as breaking changes in the 3.0 milestones, including those in 3.0 beta 1 and 3.0 beta 2.
Append (previously Concat)Await (experimental)AwaitCompletion (experimental)BacksertCartesian (new overloads)ChooseCompareCountCountDownMemoize (experimental)TransposeWindow (previously Windowed)WindowLeftWindowRightZipLongest (new overloads)These methods are now obsolete: ⚠️
For a complete list and details, see issues tagged as breaking changes in the 3.0 milestones, including those in 3.0 beta 1 and 3.0 beta 2.
Extension methods removed in this release:
Incremental (#242)NestedLoops (#462)SingleOrFallback (#388)ToDelimitedString overloads taking zero arguments; i.e. delimiter is now always required (#229)Release 3.0 drops builds for all version of .NET Framework earlier than 4.5.1 (#379, #329).
Nothing published for this version
Nothing published for this version
2.10.0 milestone for changes in this release
Adds new operator:
See also:
2.9.0 milestone for changes in this release
2.8.0 milestone for changes in this release
Adds new operators:
See also:
This release adds .NET Standard 2.0 as a target (see #343 for more).
This release adds .NET Standard 2.0 as a target (see #343 for more).
Adds new operators:
See also:
Nothing published for this version
Nothing published for this version
[FullGroupJoin][FullGroupJoin] (new overloads)
Adds new operators:
PadStartFullGroupJoin (new overloads)See also:
2.5.0 milestone for changes in this release
Adds new operators:
ScanRightToArrayByIndexSee also:
2.4.1 is a maintenance release that addresses packaging issues. There are no new features or code bug fixes since the previous release.
2.4.1 is a maintenance release that addresses packaging issues. There are no new features or code bug fixes since the previous release.
See also:
Adds new overloads for the following operators:
Adds new operators:
PartitionAdds new overloads for the following operators:
ToDictionaryToLookupFoldSee also:
Nothing published for this version
Nothing published for this version
2.3.0 milestone for changes in this release
Adds the following operators:
AggregateRightUnfoldSee also:
2.2.0 milestone for changes in this release
Adds the following operators:
Repeat (new overload)SequenceSkipLastSee also:
Nothing published for this version
The following are now obsolete:
Adds the following operators:
AtMostCountBetweenExactlyFillBackwardFillForwardThe following are now obsolete:
IncrementalToDelimitedString (only overloads with zero arguments)See also:
Nothing published for this version
 Adds the following operators: - Assert - AtLeast - Cartesian - CountBy - EndsWith - Eq
Adds the following operators:
AssertAtLeastCartesianCountByEndsWithEquiZipExcludeFallbackIfEmptyFullGroupJoinGroupAdjacentIncrementalInterleaveLagLeadNestedLoopsOrderByPartialSortPartialSortByPermutationsRandomRandomDoubleRandomSubsetRankRankByRepeatRunLengthEncodeSegmentSliceSortedMergeStartsWithSubsetsTagFirstLastThenByTraverseBreadthFirstTraverseDepthFirstWindowedZipShortestMarks the following obsolete:
SingleOrFallback (#122)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.