Is there a library function in python that creates recursive lists in the following sense: recursive_list(f, x0, n) = [x0, f(x0), f(f(x0)), f(f(f(x0))), ...]
?
Is there a library function in python that creates recursive lists in the following sense: recursive_list(f, x0, n) = [x0, f(x0), f(f(x0)), f(f(f(x0))), ...]
?