SuperLinq.Async 4.0.0-preview.5

Prefix Reserved
This is a prerelease version of SuperLinq.Async.
There is a newer version of this package available.
See the version list below for details.
dotnet add package SuperLinq.Async --version 4.0.0-preview.5                
NuGet\Install-Package SuperLinq.Async -Version 4.0.0-preview.5                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SuperLinq.Async" Version="4.0.0-preview.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SuperLinq.Async --version 4.0.0-preview.5                
#r "nuget: SuperLinq.Async, 4.0.0-preview.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SuperLinq.Async as a Cake Addin
#addin nuget:?package=SuperLinq.Async&version=4.0.0-preview.5&prerelease

// Install SuperLinq.Async as a Cake Tool
#tool nuget:?package=SuperLinq.Async&version=4.0.0-preview.5&prerelease                

SuperLinq.Async

Async LINQ to Objects is missing a few desirable features.

This project enhances Async LINQ to Objects with extra methods, in a manner which keeps to the spirit of LINQ.

SuperLinq.Async is available for download and installation as a NuGet package.

Usage

SuperLinq.Async can be used in one of two ways. The simplest is to just import the SuperLinq.Async namespace and all extension methods become instantly available for you to use on the types they extend (typically some instantiation of IAsyncEnumerable<T>).

Apart from extension methods, SuperLinq.Async also offers regular static method that generate (instead of operating on) sequences, like Unfold, Random, Sequence and others.

.NET Versions

Base library is supported on .NET Core 3.1 and .NET 5.0+.

Operators

AtLeast

Determines whether or not the number of elements in the sequence is greater than or equal to the given integer.

AtMost

Determines whether or not the number of elements in the sequence is lesser than or equal to the given integer.

Choose

Applies a function to each element of the source sequence and returns a new sequence of result elements for source elements where the function returns a couple (2-tuple) having a true as its first element and result as the second.

This method has 2 overloads.

CompareCount

Compares two sequences and returns an integer that indicates whether the first sequence has fewer, the same or more elements than the second sequence.

Consume

Completely consumes the given sequence. This method does not store any data during execution

CountBy

Applies a key-generating function to each element of a sequence and returns a sequence of unique keys and their number of occurrences in the original sequence.

This method has 2 overloads.

EndsWith

Determines whether the end of the first sequence is equivalent to the second sequence.

This method has 4 overloads.

Exactly

Determines whether or not the number of elements in the sequence is equals to the given integer.

FillBackward

Returns a sequence with each null reference or value in the source replaced with the following non-null reference or value in that sequence.

This method has 7 overloads.

FillForward

Returns a sequence with each null reference or value in the source replaced with the previous non-null reference or value seen in that sequence.

This method has 7 overloads.

Fold

Returns the result of applying a function to a sequence with 1 to 16 elements.

This method has 16 overloads.

From

Returns a sequence containing the values resulting from invoking (in order) each function in the source sequence of functions.

This method has 4 overloads.

Generate

Returns a sequence of values consecutively generated by a generator function

Insert

Inserts the elements of a sequence into another sequence at a specified index.

Random

Returns an infinite sequence of random integers using the standard .NET random number generator.

This method has 6 overloads.

RunLengthEncode

Run-length encodes a sequence by converting consecutive instances of the same element into a KeyValuePair<T, int> representing the item and its occurrence count.

This method has 2 overloads.

Segment

Divides a sequence into multiple sequences by using a segment detector based on the original sequence.

This method has 6 overloads.

Sequence

Generates a sequence of integral numbers within the (inclusive) specified range.

This method has 2 overloads.

SkipUntil

Skips items from the input sequence until the given predicate returns true when applied to the current source item; that item will be the last skipped

StartsWith

Determines whether the beginning of the first sequence is equivalent to the second sequence.

This method has 4 overloads.

Take

Returns a specified range of contiguous elements from a sequence using the range operator.

TakeUntil

Returns items from the input sequence until the given predicate returns true when applied to the current source item; that item will be the last returned

Window

Processes a sequence into a series of subsequences representing a windowed subset of the original

WindowLeft

Creates a left-aligned sliding window over the source sequence of a given size.

WindowRight

Creates a right-aligned sliding window over the source sequence of a given size.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  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 netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SuperLinq.Async:

Package Downloads
Parquet.Producers

Little dotnet framework for maintaining sorted datasets in Parquet with incremental updating

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.2.0 4,669 7/17/2024
6.1.0 2,309 5/24/2024
6.0.1 5,635 4/30/2024
6.0.0 130 4/10/2024
6.0.0-preview.1 61 2/26/2024
5.4.0 11,038 11/27/2023
5.4.0-preview.1 80 11/22/2023
5.3.0 139 11/14/2023
5.2.0 256 7/8/2023
5.1.0 207 5/26/2023
5.0.0 644 4/28/2023
4.8.0 545 2/21/2023
4.7.0 313 1/30/2023
4.6.0 308 12/24/2022
4.5.0 342 11/28/2022
4.4.0 503 10/3/2022
4.3.0 425 9/28/2022
4.2.0 1,845 8/25/2022
4.1.0 374 8/12/2022
4.1.0-preview.2 110 7/25/2022
4.1.0-preview.1 124 7/21/2022
4.0.0 427 7/20/2022
4.0.0-preview.7 131 7/9/2022
4.0.0-preview.6 138 7/4/2022
4.0.0-preview.5 119 6/28/2022
4.0.0-preview.4 104 6/20/2022
4.0.0-preview.2.5 132 6/15/2022