From 87109a511be257633a360ac067ed8d378f424795 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Wed, 28 Oct 2015 16:36:52 -0400 Subject: [PATCH] REPL :require example --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bde2c4..6930051 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,14 @@ In case this state needs to be cleaned / destryed between reloads, there is also ``` That is pretty much it. But wait, there is more.. this state is _a top level being_, which means it can be simply -`required` by other namespaces. +`required` by other namespaces or in REPL: + +```clojure +dev=> (require '[app.nyse :refer [conn]]) +nil +dev=> conn +#object[datomic.peer.LocalConnection 0x1661a4eb "datomic.peer.LocalConnection@1661a4eb"] +``` ### Using State