Quiz. write a function r(f,x,n) that returns a list [f(x), f(f(x)), ...], length n.
write in your fav lang.

f is function (e.g. f(x) = x+1), x is a number, n is a number ≥ 1. we want [f(x), f(f(x)), ...]

#haskell #javascript #golang

edit: clarified detail.

Shared publicly