Skip to content

Instantly share code, notes, and snippets.

View Activeghost's full-sized avatar

Christopher Lester Activeghost

View GitHub Profile
@Activeghost
Activeghost / gist:692bd8b18a925479865f67f11b377e56
Created April 29, 2019 06:57 — forked from stuarthalloway/gist:2645453
Datomic queries against Clojure collections
;; Datomic example code
(use '[datomic.api :only (db q) :as d])
;; ?answer binds a scalar
(q '[:find ?answer :in ?answer]
42)
;; of course you can bind more than one of anything
(q '[:find ?last ?first :in ?last ?first]
"Doe" "John")