Up

Module Import

Signature

val verbose : bool
val iter_while_rev : 'a . iter:(unit -> 'a) -> cond:('a -> bool) -> 'a list

Iterate a function while another function is true.

Results are collected in reverse order for performance. Use List.rev if you need results in the order they were produced.