Skip to content

Instantly share code, notes, and snippets.

@quoll
Created February 9, 2018 16:21
Show Gist options
  • Save quoll/4319c4060c32a6e47ccb28b789f79369 to your computer and use it in GitHub Desktop.
Save quoll/4319c4060c32a6e47ccb28b789f79369 to your computer and use it in GitHub Desktop.
Second valid? function
(defn valid*? [phrase]
(let [words (map sort (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