Documentation

Init.While

Notation for while and repeat loops. #

repeat and while notation #

inductive Lean.Loop :
Instances For
    @[inline]
    def Lean.Loop.forIn {β : Type u} {m : Type u → Type v} [Monad m] :
    Loop(init : β) → (f : Unitβm (ForInStep β)) → m β
    Equations
      Instances For
        @[specialize #[]]
        partial def Lean.Loop.forIn.loop {β : Type u} {m : Type u → Type v} [Monad m] (f : Unitβm (ForInStep β)) (b : β) :
        m β
        instance Lean.instForInLoopUnit {m : Type u_1 → Type u_2} :
        Equations
          Equations
            Instances For
              Equations
                Instances For
                  Equations
                    Instances For