Reputation: 646
Is there a clojure function that can be called in a loop with feeding it with the result of the previous call?
Pseudo-code might be look like this:
currentValue = firstValue;
while (endNotYetReached(currentValue)) {
currentValue = myFunction(currentValue);
}
Thank you for every answer!
Upvotes: 1
Views: 191