Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Sequence"

Index

Functions

asSequence

  • asSequence<T>(iterable: Iterable<T>): Sequence<T>

emptySequence

generateSequence

  • generateSequence<T>(nextFunction: function): Sequence<T>
  • generateSequence<T>(seedFunction: function, nextFunction: function): Sequence<T>
  • generateSequence<T>(seed: T | null | undefined, nextFunction: function): Sequence<T>
  • Type parameters

    • T

    Parameters

    • nextFunction: function
        • (): T | null | undefined
        • Returns T | null | undefined

    Returns Sequence<T>

  • Type parameters

    • T

    Parameters

    • seedFunction: function
        • (): T | null | undefined
        • Returns T | null | undefined

    • nextFunction: function
        • (item: T): T | null | undefined
        • Parameters

          • item: T

          Returns T | null | undefined

    Returns Sequence<T>

  • Type parameters

    • T

    Parameters

    • seed: T | null | undefined
    • nextFunction: function
        • (item: T): T | null | undefined
        • Parameters

          • item: T

          Returns T | null | undefined

    Returns Sequence<T>

sequenceOf

  • sequenceOf<T>(...args: Array<T>): Sequence<T>