Signature: range(start: int, end: int) -> iterator

Description: Creates an iterator that generates numbers from start to end (exclusive).

Parameters #

  • start (int): The starting number (inclusive)
  • end (int): The ending number (exclusive)

Returns: iterator

Example #

forEach(range(0, 5), fn(x) { print(x) })  // Prints: 0, 1, 2, 3, 4