Documentation
    Preparing search index...

    Interface OrderedLinqWrapper<T>

    Represents an extension point to expose the additional LINQ methods via PipeTarget.

    To invoke LINQ methods, use the $ method with LINQ pipe functions in this module.

    interface OrderedLinqWrapper<T> {
        "[iterator]"(): Iterator<T, any, any>;
        $<T>(pipeBody: PipeBody<OrderedLinqWrapper<T>, T>): T;
        thenBy<TKey>(
            keySelector: SequenceElementSelector<T, TKey>,
            comparer?: ComparerFunction<TKey>,
        ): LinqWrapper<T>;
        thenByDescending<TKey>(
            keySelector: SequenceElementSelector<T, TKey>,
            comparer?: ComparerFunction<TKey>,
        ): LinqWrapper<T>;
        unwrap(): Iterable<T>;
    }

    Type Parameters

    • T

      type of the sequence item.

    Hierarchy (View Summary)

    Index

    Methods

    • Infrastructure. Unwraps and returns the underlying Iterable object, if available.

      Returns Iterable<T>

      the underlying Iterable object that will give exactly the same iteration sequence as current LINQ wrapper. If there is no applicable underlying iterator, this method may return this.

      This is the reverse operation of asLinq. LINQ extension function implementations can use this method to retrieve the underlying data object.

      By convention, multiple invocations to this function should return the same reference. Failing to meeting this requirement may result unexpected re-iteration behavior.

      As LINQ functions consumer, usually you won't need to call this function directly.