Skip to content

Instantly share code, notes, and snippets.

@uwo
uwo / .gitignore
Last active November 15, 2018 21:23
osx-sounds
.cpcache/
.nrepl-port
@uwo
uwo / pull_util.clj
Created November 15, 2018 21:27
to-pull-expression
(ns pull-util)
(defn to-pull-expression
"Naively build pull expression from given tree. Doesn't work with refs
that are represented by idents (keywords), e.g. enums, at the moment."
[tree]
(letfn [(card-many-ref? [v]
(and (sequential? v)
(every? map? v)))
(branch? [v]
@uwo
uwo / .gitignore
Last active January 30, 2019 23:08
Search trees like ctrl-F ?
.cpcache
.nrepl-port