loop start end f: Loops from start to end (inclusive), executing f
on each iteration. Same as forM_ [start..end] f.
Uses succ inside, which does a bounds (overflow) check.
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11
Moduleloop-0.3.0Haskell98
This is for trying out loop alternatives.
Names and types are subjects to change.
loop start end f: Loops from start to end (inclusive), executing f
on each iteration. Same as forM_ [start..end] f.
Uses succ inside, which does a bounds (overflow) check.