Function whileDo

  • Repeats the given source as long as the specified conditions holds, where the condition is evaluated before each repeated source is iterated.

    Type Parameters

    • TSource

    Parameters

    • source: Iterable<TSource>

      Source to repeat as long as the condition function evaluates to true.

    • condition: (() => boolean)

      Condition that will be evaluated before the source sequence is iterated.

        • (): boolean
        • Returns boolean

    Returns Iterable<TSource>

    An iterable which is repeated while the condition returns true.

Generated using TypeDoc