Hi guys. New to clojure. First post here. I'll try to keep it short. I can't figure out why this function doesn't work.
(fn [acc x] (into acc [(+ x (last acc))]))
[1 1 1 1]
As the name suggests its supposed to count to five.
Thanks in advance to anyone who can help explain.