Clojure

Notes on Clojure.

Reference

Concatenating strings

(require '\[clojure.string :as string\])

(string/join ["foo" "bar"])

List files recursively

(file-seq "/etc")

(Compare with the Java version.)

Filter by extension:

(filter #(.endsWith (.toString %) ".conf") 
    (file-seq "/etc")))

Get home directory

def home (System/getProperty "user.home"))