Skip to content

Instantly share code, notes, and snippets.

@francois
Created December 19, 2008 02:20
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
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