Skip to content

Instantly share code, notes, and snippets.

Avatar

Kamil Szymczyk kasz

  • Łódź, Poland
View GitHub Profile
@kasz
kasz / standard.clj
Created Mar 1, 2012
Typed and standard Clojure functions
View standard.clj
(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))))
You can’t perform that action at this time.