Porting single argument function to accept multiple arguments
Notes
1
2
3
4
5
6
7
8
9
10
11
;; porting_single_argument_function_to_accept_multiple_arguments.clj
(defn say-hi
([name] (str "Hi " name))
([name & many-names] (map say-hi (conj many-names name))))
(say-hi "Karthik")
(map say-hi ["Karthik" "Mathew" "Orangutaan"])
(say-hi "Karthik" "Mathew" "Orangutaan")