I know I can solve my problem with loop and recur but it seems such a simple (common?) operation that I was wondering if there was no single function in clojure or less cluttered approach then loop/ recur to solve this. I searched for it but was not able to find something.
The function I was looking for is the following.
(the-function n input some-function)
where n is the number of time to recursivle call some-function on the input.
A simple example would be:
(the-function 3 1 (fn [x] (+ x 1)))
=> 4
Is ther anything like that in Clojure?
Best regards