Skip to main content

Mojo function

count

count(start: Int = 0, step: Int = 1) -> _CountIterator

Constructs an iterator that starts at the value start with a stride of step.

Args:

  • start (Int): The start of the iterator.
  • step (Int): The stride of the iterator.

Returns:

_CountIterator: The constructed iterator.

Was this page helpful?