Created
February 9, 2018 16:21
-
-
Save quoll/4319c4060c32a6e47ccb28b789f79369 to your computer and use it in GitHub Desktop.
Second valid? function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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