Skip to content

Instantly share code, notes, and snippets.

View kasz's full-sized avatar

Kamil Szymczyk kasz

  • Łódź, Poland
View GitHub Profile
@kasz
kasz / standard.clj
Created March 1, 2012 15:01
Typed and standard Clojure functions
(defn- list-directory-json-files
"Lists JSON files in specified directory."
[path]
(let [directory (io/file path)
files (file-seq directory)]
(filter #(.endsWith %1 ".json") (map #(.getPath %1) files))))