Skip to content

Instantly share code, notes, and snippets.

@bitemyapp
Created August 2, 2010 09:07
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 bitemyapp/504370 to your computer and use it in GitHub Desktop.
Save bitemyapp/504370 to your computer and use it in GitHub Desktop.
(defn ellip-2 [words]
(let [sentlist (re-split #"\s+" words)]
(str (str-join " " (take 3 sentlist)) "...")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment