Skip to content

Instantly share code, notes, and snippets.

@devn
Forked from Licenser/gist:349786
Created March 31, 2010 02:49
Show Gist options
  • Select an option

  • Save devn/349873 to your computer and use it in GitHub Desktop.

Select an option

Save devn/349873 to your computer and use it in GitHub Desktop.
(defn categorize-code [files]
(reduce (fn [result code]
(try
(let [r (*sandbox* code)]
(update-in result [:good] conj [code r])
[code (pr-str r)])
(catch Exception e
(update-in result [:bad] conj code))))
{}
(find-lines text files)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment