Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OrderedIterable<T>

Represents an [[Iterable]] that is inherently ordered.

Type parameters

  • T

Hierarchy

Implemented by

Index

Methods

[OrderedIterable.thenBy]

  • [OrderedIterable.thenBy]<K>(keySelector: function, comparer: Comparison<K> | Comparer<K>, descending: boolean): OrderedIterable<T>
  • Creates a subsequent OrderedIterable whose elements are also ordered by the provided key.

    Type parameters

    • K

    Parameters

    • keySelector: function

      A callback used to select the key for an element.

        • (element: T): K
        • A callback used to select the key for an element.

          Parameters

          • element: T

          Returns K

    • comparer: Comparison<K> | Comparer<K>

      A callback used to compare two keys.

    • descending: boolean

      A value indicating whether to sort in descending (true) or ascending (false) order.

    Returns OrderedIterable<T>

[Symbol.iterator]

  • Returns Iterator<T>

Generated using TypeDoc