@[irreducible, specialize #[]]
def
Std.Range.forIn'.loop
{m : Type u_1 → Type u_2}
{β : Type u_1}
[Monad m]
(range : Std.Range)
(f : (i : Nat) → i ∈ range → β → m (ForInStep β))
(b : β)
(i : Nat)
(hs : (i - range.start) % range.step = 0)
(hl : range.start ≤ i := by omega)
:
m β
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Std.Range.instForIn'NatInferInstanceMembership = { forIn' := fun {β : Type ?u.14} [Monad m] => Std.Range.forIn' }
@[irreducible, specialize #[]]
def
Std.Range.forM.loop
{m : Type u_1 → Type u_2}
[Monad m]
(range : Std.Range)
(f : Nat → m PUnit)
(i : Nat)
:
m PUnit
Equations
- Std.Range.forM.loop range f i = if i < range.stop then do f i have this : 0 < range.step := ⋯ Std.Range.forM.loop range f (i + range.step) else pure PUnit.unit
Instances For
Equations
- Std.Range.instForMNat = { forM := fun [Monad m] => Std.Range.forM }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.