RosettaCodeData/Task/Higher-order-functions/Clojure/higher-order-functions.clj

8 lines
128 B
Clojure

(defn append-hello [s]
(str "Hello " s))
(defn modify-string [f s]
(f s))
(println (modify-string append-hello "World!"))