有没有办法从其他命名空间重新导出某些命名空间的变量?我希望能够做到这一点:Clojure:重新导出变量
(ns mine.core
(:use [incanter core charts datasets io]))
; re-export Incanter somehow
然后在REPL我将能够在仅仅use
-ing mine.core
使用咒术功能。
user=> (use 'mine.core)
nil
user=> (view (histogram (sample-normal 1000)))
谢谢!
看看http://stackoverflow.com/questions/4732134/can-i-refer-another-namespace-and-expose-its-functions-as-public-for-the-current?rq=1 – jwhitlark