This is a doable homework.
the bellow section requires the knowledge of clojures basic types. I belive here is some good documentation about basic types. http://kimh.github.io/clojure-by-example/#about
age
name
gender
amount
person
persons
We have seen that the map function is used to transform a collection into an other in a one to one fashion. Let's try it
3.1.1 Increase the value of each item in [20 89 92 89] of one using the inc function.
[20 89 92 89]
3.1.2 Decrease the value of each item in [100 90 98 11] of one using dec function.
3.1.3 Capitalize each word in ["one" "two" "three"] using the clojure.string/upper-case function
["one" "two" "three"]
3.1.4 Extract the name of each keyword in the array [:name :age :gender] using the name function.
[:name :age :gender]
3.1.5 Extract the :name of each dict in the array [{:name "bob"} {:name "alice"} {:name "margaret"}] using the :name function.
:name
[{:name "bob"} {:name "alice"} {:name "margaret"}]
3.2.1 Filter all the odd numbers of the [1 2 3 4 5 6 7] list using the odd? function.
[1 2 3 4 5 6 7]
3.2.2 Filter all the even numbers of the [1 2 3 4 5 6 7] list using the even? function.
3.2.3 Filter all the "not nil" values of the [false nil "" 0 true] list using the some? function.
[false nil "" 0 true]
3.3.1 Sum all the numbers of the [1 2 3 4 5 6 7] list using the + function.
3.3.2 Multiply all the numbers of the [1 2 3 4 5 6 7] list using the * function.
3.3.2 Concat the three lists [1 2 3 4], [:a :b :c], ["hello" "world"] using the concat function.
[1 2 3 4]
[:a :b :c]
["hello" "world"]
sum the value of each odd number in the list [1 2 3 4 5 6 7 8 9 10]
[1 2 3 4 5 6 7 8 9 10]
Find total amount owned by the persons in the list [{:name "bob" :amout 10.23} {:name "alice" :amout 15.23} ]
[{:name "bob" :amout 10.23} {:name "alice" :amout 15.23} ]