DEV Community

Discussion on: Write a script to identify an anagram

Collapse
 
joshavg profile image
Josha von Gizycki

Always happy to provide Clojure answers ;)

(defn anagram? [w1 w2]
  (= (sort w1) (sort w2)))

And of course I snooped the algorithm from all the other answers here.