Skip to content

Instantly share code, notes, and snippets.

@cgrand
Created April 6, 2010 09:36
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 cgrand/357407 to your computer and use it in GitHub Desktop.
Save cgrand/357407 to your computer and use it in GitHub Desktop.
(defn letters [charset-name]
(let [ce (-> charset-name java.nio.charset.Charset/forName .newEncoder)]
(apply str (->> (range 0 (int Character/MAX_VALUE)) (map char)
(filter #(and (.canEncode ce %) (Character/isLetter %)))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment