English
A specialised variant of map with index that returns Unit in the monadic context.
Русский
Специализированный вариант map с индексом, возвращающий единичную Kristo в монаде.
LaTeX
$$$\\mathrm{mapIdxM'}(f,\\mathrm{as}) = \\mathrm{mapIdxMAux'}(f)(0,\\mathrm{as})$$$
Lean4
/-- A variant of `mapIdxM` specialised to applicative actions which
return `Unit`. -/
def mapIdxM' {α} (f : ℕ → α → m PUnit) (as : List α) : m PUnit :=
mapIdxMAux' f 0 as