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
(use 'clojure.test) | |
(def trie (atom {})) | |
(defn in-trie? [a k] | |
(let [key-chars (mapv str (name k)) | |
xs (first key-chars) | |
ys (rest key-chars)] | |
(cond | |
(and (not-empty ys) |