Skip to content

Instantly share code, notes, and snippets.

@sritchie sritchie/taps.clj Secret
Created Feb 2, 2011

Embed
What would you like to do?
(defn files-with-names
"Subquery to return all files, along with their filenames."
[dir]
(let [source (hfs-wholefile dir)]
(<- [?filename ?file] (source ?filename ?file))))
(defn all-files
"Subquery to return all files in the supplied directory."
[dir]
(let [source (hfs-wholefile dir)]
(<- [?file] (source ?filename ?file))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.