Options
All
  • Public
  • Public/Protected
  • All
Menu

rangely

Index

Functions

range

  • range(start: number, end: number, step: number): IterableIterator<number>
  • range(start: number, end: number): IterableIterator<number>
  • range(end: number): IterableIterator<number>
  • Used to create an iterator in the same manner as pythons range built-in.

    Parameters

    • start: number

      The first number in the range.

    • end: number

      When the range stops. This is exclusive so the range will only include up to this number but not this number itself.

    • step: number

      How big of a step to take between numbers in the range. Defaults to 1 when not specified.

    Returns IterableIterator<number>

    • An iterator from start to end with a gap size of step.
  • Used to create an iterator in the same manner as pythons range built-in.

    Parameters

    • start: number

      The first number in the range.

    • end: number

      When the range stops. This is exclusive so the range will only include up to this number but not this number itself.

    Returns IterableIterator<number>

    • An iterator from start to end with a gap size of one.
  • Used to create an iterator in the same manner as pythons range built-in.

    Parameters

    • end: number

      When the range stops. This is exclusive so the range will only include up to this number but not this number itself.

    Returns IterableIterator<number>

    • An iterator from zero to end with a gap size of one.

Generated using TypeDoc