8.2. Control Structures

Normally, programs written in IO use the same control structures as those written in other monads. There is one specific IO helper.

🔗opaque
IO.iterate {α β : Type} (a : α)
    (f : αIO (αβ)) : IO β