Why does Base.retry return a function?

I was expecting Base.retry(f) to just do the work, but instead it was Base.retry(f)().

Is this the only function in Base that returns another function?

2 Likes

Base.identity also returns you whatever you have