Last active
January 3, 2016 18:39
-
-
Save andrewmcnamara/8503360 to your computer and use it in GitHub Desktop.
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 is_anagram? | |
[word anagram] | |
(and (= (.length anagram) (.length word)) (empty? (clojure.set/difference (set word) (set anagram))))) | |
(filter (partial is_anagram? "yellow") ["yellow" "lowyelq"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment