Source tests/typing/accept/retry.det
let retry =  rec retry f =>    fun x =>      if flip(0.7)      then f x      else retry f xinlet noisy_inc = fun x => x + uniform(0,1) inretry noisy_inc 5