Problem Statement
Given n, x, f: I want output of the form:
[x, f(x), f(f(x)), f(f(f(x))), ..., f^{n-1}(x)] Existing solution
This can be done via reductions
(reductions (fn [state _] (f state)) state (range n)) Question
Is there a primitive that provides a shorter solution?
(take n (iterate f x)).