Documentation

Init.Data.Range

structure Std.Range :
Instances For
    @[inline]
    def Std.Range.forIn {β : Type u} {m : Type u → Type v} [Monad m] (range : Std.Range) (init : β) (f : Nat → β → m (ForInStep β)) :
    m β
    Instances For
      @[specialize #[]]
      def Std.Range.forIn.loop {β : Type u} {m : Type u → Type v} [Monad m] (f : Nat → β → m (ForInStep β)) (fuel : Nat) (i : Nat) (stop : Nat) (step : Nat) (b : β) :
      m β
      Equations
      Instances For
        @[inline]
        def Std.Range.forIn' {β : Type u} {m : Type u → Type v} [Monad m] (range : Std.Range) (init : β) (f : (i : Nat) → i ∈ range → β → m (ForInStep β)) :
        m β
        Instances For
          @[specialize #[]]
          def Std.Range.forIn'.loop {β : Type u} {m : Type u → Type v} [Monad m] (start : Nat) (stop : Nat) (step : Nat) (f : (i : Nat) → start ≤ i ∧ i < stop → β → m (ForInStep β)) (fuel : Nat) (i : Nat) (hl : start ≤ i) (b : β) :
          m β
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[inline]
            def Std.Range.forM {m : Type u → Type v} [Monad m] (range : Std.Range) (f : Nat → m PUnit) :
            Instances For
              @[specialize #[]]
              def Std.Range.forM.loop {m : Type u → Type v} [Monad m] (f : Nat → m PUnit) (fuel : Nat) (i : Nat) (stop : Nat) (step : Nat) :
              Equations
              Instances For
                theorem Membership.mem.upper {i : Nat} {r : Std.Range} (h : i ∈ r) :
                i < r.stop
                theorem Membership.mem.lower {i : Nat} {r : Std.Range} (h : i ∈ r) :
                r.start ≤ i