3 ms·
> You pass it a function and a number of times to retry it. The base case is when n is 0. In that case, it will just try it (not retry). So, TRY-N-TIMES should
by wtbob 12y ago
> You pass it a function and a number of times to retry it. The base case is when n is 0. In that case, it will just try it (not retry).
So, TRY-N-TIMES should either be named RETRY-N-TIMES or the base case should be 1; as it is, `(try-n-times #(foobar) 1)` will potentially try twice.