fun IO<String>.retry(count: Int): IO<Stri...
# arrow
b
fun IO<String>.retry(count: Int): IO<String> = handleErrorWith { withRetry(it, count) } fun IO<String>.withRetry(err: Throwable, retries: Int) = if (retries == 0) IO.raiseError(err) else handleErrorWith { withRetry(it, retries - 1) }