Documentation

Init.Data.Range.Polymorphic.RangeIterator

Range iterator #

This module implements an iterator for ranges (Std.PRange).

This iterator is publicly available via PRange.iter after importing Std.Data.Iterators and it internally powers many functions on ranges such as PRange.toList.

@[unbox]
structure Std.PRange.RangeIterator (shape : BoundShape) (α : Type u) :

Internal state of the range iterators. Do not depend on its internals.

Instances For
    @[inline]

    The pure function mapping a range iterator of type IterM to the next step of the iterator.

    This function is prefixed with Monadic in order to disambiguate it from the version for iterators of type Iter.

    Equations
      Instances For
        @[inline]

        The pure function mapping a range iterator of type Iter to the next step of the iterator.

        Equations
          Instances For