Skip to content

Instantly share code, notes, and snippets.

Avatar

Fed Reggiardo Fedreg

View GitHub Profile
@Fedreg
Fedreg / hacky-trie.clj
Created Jul 14, 2019
Quick and dirty Trie experiment in Clojure
View hacky-trie.clj
(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)
You can’t perform that action at this time.