Skip to content

Instantly share code, notes, and snippets.

@m0smith m0smith/direader.clj
Created Apr 17, 2014

What would you like to do?
Dependency Injection in Clojure 5.1 - Reader Monad
(defn foo []
(domonad reader-m [db (asks :db)]
(update! db "foo")))
(defn app []
(domonad reader-m [_ (foo)]))
((app) (init-context))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.