Reputation: 189
I have the following code:
(ns mylib-clojure.core)
(defn foo2 [x]
(inc x))
(defn foo1 [x]
(foo2 x))
Function foo2
is just used internally inside foo1
. Let's say I don't want to expose function foo2
so I have a smaller API provided for users of my namespace. Is it possible to make foo2
"private"?
Upvotes: 1
Views: 230