Last active
October 28, 2019 14:17
-
-
Save juniorgarcia/967e1aa551e1f266deb546d2c12405d2 to your computer and use it in GitHub Desktop.
Clojure Article - Clojure functional programming example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use '[clojure.string :only (join)]) | |
(def names ["John" "Doe"]) | |
(defn write-all-names [names] | |
(str (join ", " names) ".")) | |
(println (write-all-names names)) | |
; Johh, Doe. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment