Skip to content

Instantly share code, notes, and snippets.

Fed Reggiardo Fedreg

Block or report user

Report or block Fedreg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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)]
(and (not-empty ys)
You can’t perform that action at this time.