Skip to content

Instantly share code, notes, and snippets.

@quoll
Created February 9, 2018 16:05
Show Gist options
  • Save quoll/6fa4057755c5c4e2d794b93a9663c56b to your computer and use it in GitHub Desktop.
Save quoll/6fa4057755c5c4e2d794b93a9663c56b to your computer and use it in GitHub Desktop.
valid? function
(defn valid? [phrase]
(let [words (str/split phrase #" ")]
(= (count words) (count (set words)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment