Skip to content

Instantly share code, notes, and snippets.

@francois
Created December 19, 2008 02:20
Show Gist options
  • Save francois/37764 to your computer and use it in GitHub Desktop.
Save francois/37764 to your computer and use it in GitHub Desktop.
(def status "this is my status")
(def rdr (java.io.PushbackReader. (java.io.StringReader. status)))
(distinct
(loop [words []]
(let [word (read rdr false nil)]
(if (word)
(recur (conj words word))
words))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment