Show / Hide Table of Contents

    Class ReadOnlyListExtensions

    Extensions that make manipulating read-only lists easier.

    Inheritance
    System.Object
    ReadOnlyListExtensions
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Flame.Collections
    Assembly: Flame.dll
    Syntax
    public static class ReadOnlyListExtensions

    Methods

    | Improve this Doc View Source

    EagerSelect<T, V>(IReadOnlyList<T>, Func<T, V>)

    Applies a function to each element in a read-only list and creates a new read-only view of a list containing the transformed elements.

    Declaration
    public static IReadOnlyList<V> EagerSelect<T, V>(this IReadOnlyList<T> list, Func<T, V> mapping)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<T> list

    A list of input elements.

    System.Func<T, V> mapping

    A mapping function.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<V>

    A list of transformed elements.

    Type Parameters
    Name Description
    T
    V
    | Improve this Doc View Source

    EagerSelect<T, V, TArg2>(IReadOnlyList<T>, Func<T, TArg2, V>, TArg2)

    Applies a function to each element in a read-only list and creates a new read-only view of a list containing the transformed elements.

    Declaration
    public static IReadOnlyList<V> EagerSelect<T, V, TArg2>(this IReadOnlyList<T> list, Func<T, TArg2, V> mapping, TArg2 mappingArg2)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<T> list

    A list of input elements.

    System.Func<T, TArg2, V> mapping

    A mapping function.

    TArg2 mappingArg2

    A constant second argument to the mapping function.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<V>

    A list of transformed elements.

    Type Parameters
    Name Description
    T
    V
    TArg2
    | Improve this Doc View Source

    Slice<T>(IReadOnlyList<T>, Int32)

    Takes a slice of a read-only list.

    Declaration
    public static IReadOnlyList<T> Slice<T>(this IReadOnlyList<T> list, int offset)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<T> list

    The read-only list ot slice.

    System.Int32 offset

    The offset in the read-only list at which the slide begins.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<T>

    A slice of list

    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Slice<T>(IReadOnlyList<T>, Int32, Int32)

    Takes a slice of a read-only list.

    Declaration
    public static IReadOnlyList<T> Slice<T>(this IReadOnlyList<T> list, int offset, int count)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<T> list

    The read-only list ot slice.

    System.Int32 offset

    The offset in the read-only list at which the slide begins.

    System.Int32 count

    The number of elements in the slice.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyList<T>

    A slice of list

    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX