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 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
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.