SuperLinq SuperLinq
SuperLinq SuperLinq
DocFX + Singulink = ♥

Search Results for

    Method Fold

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, TResult>)

    Returns the result of applying a function to a sequence of 1 element.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 1 element.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, TResult>)

    Returns the result of applying a function to a sequence of 2 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 2 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 3 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 3 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 4 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 4 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 5 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 5 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 6 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 6 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 7 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 7 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 8 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 8 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 9 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 9 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 10 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 10 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 11 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 11 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 12 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 12 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 13 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 13 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 14 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 14 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult>)

    Returns the result of applying a function to a sequence of 15 elements.

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 15 elements.

    Fold<T, TResult>(IAsyncEnumerable<T>, Func<T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult>)

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

    Declaration
    public static ValueTask<TResult> Fold<T, TResult>(this IAsyncEnumerable<T> source, Func<T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder)
    Parameters
    Type Name Description
    IAsyncEnumerable<T> source

    The sequence of items to fold.

    Func<T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult> folder

    Function to apply to the elements in the sequence.

    Returns
    Type Description
    ValueTask<TResult>

    The folded value returned by folder.

    Type Parameters
    Name Description
    T

    Type of element in the source sequence

    TResult

    Type of the result

    Remarks

    This operator uses immediate execution and buffers as many items of the source sequence as necessary.

    Exceptions
    Type Condition
    ArgumentNullException

    source or folder is null.

    InvalidOperationException

    source does not contain exactly 16 elements.

    © SuperLinq Authors. All rights reserved.