Linqor 3.0.1
dotnet add package Linqor --version 3.0.1
NuGet\Install-Package Linqor -Version 3.0.1
<PackageReference Include="Linqor" Version="3.0.1" />
paket add Linqor --version 3.0.1
#r "nuget: Linqor, 3.0.1"
// Install Linqor as a Cake Addin #addin nuget:?package=Linqor&version=3.0.1 // Install Linqor as a Cake Tool #tool nuget:?package=Linqor&version=3.0.1
Linqor
Linq extensions for ordered sequences. They have better perfomance in comparison to standard extensions. They don't enumerate entire sequences into HashSet<T>
or lookup. With these you can lazily handle very large or even infinite sequences as long as they're ordered.
Concat, Distinct, Except, GroupBy, GroupJoin, Intersect, Join, SelectMany and Union are available.
Usage
Cast IEnumerable<T>
to OrderedEnumberable<T, TKey>
by calling AsOrderedBy<T, TKey>
. Use extensions as usual.
new[] { 1, 1, 2, 2, 2 }.AsOrderedBy(x => x).Distinct(); // [ 1, 2 ]
new[] { 1, 3, 5 }.AsOrderedBy(x => x).Concat(new[] { 2, 4, 6 }.AsOrderedBy(x => x)); // [ 1, 2, 3, 4, 5, 6 ]
Difference to LINQ API
No IComparer<T> comparer
or Func<T, TKey> keySelector
parameters. Ones from OrderedEnumerable<T, TKey>
are used instead.
GroupJoin
and Join
require additional Func<TResult, TKey> resultKeySelector
parameter.
SelectMany
requires additional OrderedEnumerable<TResult, TResultKey> seed
parameter.
They're needed to construct OrderedEnumerable<TResult, TKey>
result.
Why OrderedEnumerable<T, TKey> class and not IOrderedEnumerable<T>
Algorithms require IComparer<T>
that was used to order the enumerable. Sadly System.Linq.OrderedEnumerable
is internal
and IOrderedEnumerable<T>
doesn't have IComparer<T>
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.0 is compatible. netstandard1.1 was computed. netstandard1.2 was computed. netstandard1.3 was computed. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 is compatible. net463 was computed. net47 is compatible. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Phone | wp8 was computed. wp81 was computed. wpa81 was computed. |
Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- No dependencies.
-
.NETFramework 4.7
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
.NETStandard 1.0
- NETStandard.Library (>= 1.6.1)
-
net5.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.1 | 692 | 9/11/2021 |
3.0.0 | 440 | 8/25/2021 |
2.0.3 | 1,418 | 1/29/2018 |
2.0.2 | 1,049 | 1/28/2018 |
2.0.1 | 1,384 | 6/18/2017 |
2.0.0 | 1,257 | 6/18/2017 |
1.1.0 | 1,228 | 7/8/2016 |
1.0.0 | 1,475 | 7/2/2016 |
0.1.0 | 1,198 | 6/25/2016 |
0.0.6 | 1,178 | 5/1/2016 |
0.0.5 | 3,579 | 5/16/2015 |
0.0.4 | 1,603 | 2/6/2015 |
0.0.3 | 1,554 | 2/3/2015 |
0.0.2.1 | 1,211 | 2/3/2015 |
0.0.2 | 1,234 | 2/3/2015 |
0.0.1 | 1,245 | 2/2/2015 |
Reworked API to make it LINQ compliant.