My goal is to create an infinite list by applying a function to the last element. For example if I begin with a list that looks like
[1]
and apply the function f(x) = (x + 2) * 10, I should end with
[1, 30, 320, 3220, 32220...]
How would I code this in Haskell?