Please help me get off the ground with Clojure. I've searched and read, but all I see is how to add the number 1
using the function inc
.
I'm trying to understand the very basics of map
. All I want to do is to add the value 5
to each element in a collection. I've tried a number of different approaches, but nothing comes close. Here is one pathetic incomplete attempt:
(map (+ 5 ???) [0 1 2])
This must be childishly simple, but not for a non-functional programmer like me.
Thanks.