There is a Live Demo available. The demo powered by the KLIPSE project.
anagrams is a simple clojure library designed to give you anagrams for a word, provided you give it a dictionary of words to choose from.
- First, add anagrams to your dependencies.
- Then, require anagrams into your namespace.
(ns your-namespace (:require [anagrams.core :as anagrams])) ;; Set the word list to be used to find anagrams. (anagrams/set-word-list! "newline\ndelimeted\nword\nlist") ;; => "done" ;; To find anagrams (anagrams/anagrams-of "newline") ;; => #{"newline"} ;; To append more words to the dictionary (anagrams/append-word-list! "more\nawesome\nwords") ;; => "done" (anagrams/anagrams-of "rome");; => #{"more"}
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.