Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created April 2, 2012 23:26
Show Gist options
  • Select an option

  • Save edipofederle/2287953 to your computer and use it in GitHub Desktop.

Select an option

Save edipofederle/2287953 to your computer and use it in GitHub Desktop.
(defn indexable-word? [word]
(> (count word) 2))
(use '[clojure.contrib.str-utils :only (re-split)])
(filter indexable-word? (re-split #"\W+" "A fine day it is")) ; ("fine" "day")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment