Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (def my-db (atom {}))
- (defn add [table doc] (swap! my-db update-in [table] conj doc))
- (defn search-by-name [table name]
- (filter #(= name (:name %)) (get @my-db table)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement