Skip to content

Instantly share code, notes, and snippets.

@juniorgarcia
Last active October 28, 2019 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juniorgarcia/967e1aa551e1f266deb546d2c12405d2 to your computer and use it in GitHub Desktop.
Save juniorgarcia/967e1aa551e1f266deb546d2c12405d2 to your computer and use it in GitHub Desktop.
Clojure Article - Clojure functional programming example
(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