Skip to content

Instantly share code, notes, and snippets.

/core.clj Secret

Created January 5, 2014 15:41
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 anonymous/69b1079de64750b4f0b5 to your computer and use it in GitHub Desktop.
Save anonymous/69b1079de64750b4f0b5 to your computer and use it in GitHub Desktop.
(defn distinct-keywords [keywords] (if keywords (split keywords #",") []))
(defmulti distinct-keywords class)
(defmethod distinct-keywords nil [_] [])
(defmethod distinct-keywords String [keywords] (split keywords #","))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment