Documentation

Init.Data.Iterators.Consumers.Monadic.Total

structure Std.Iterators.IterM.Total {α : Type w} (m : Type w → Type w') (β : Type w) :

A wrapper around an iterator that provides strictly terminating consumers. See IterM.ensureTermination.

Instances For
    @[inline]
    def Std.Iterators.IterM.ensureTermination {α β : Type w} {m : Type w → Type w'} (it : IterM m β) :
    Total m β

    For an iterator it, it.ensureTermination provides variants of consumers that always terminate.

    Equations
    Instances For