Skip to content

Instantly share code, notes, and snippets.

@danlamanna
Created April 21, 2014 02:23
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 danlamanna/11130607 to your computer and use it in GitHub Desktop.
Save danlamanna/11130607 to your computer and use it in GitHub Desktop.
;; works
(filter (fn [x] (.isFile x)) (.listFiles (clojure.java.io/file "/home/dan")))
;; doesn't work
(filter .isFile (.listFiles (clojure.java.io/file "/home/dan")))
;;CompilerException java.lang.RuntimeException: Unable to resolve symbol: .isFile in this context, compiling:(/tmp/form-;;init1847152152463111113.clj:1:1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment