我想检查符号在当前命名空间中是否可解析。执行此操作的规范方法是什么?
最佳答案
再次筛选 API 文档后,我偶然发现了可能合适的函数:
; Returns the var or Class to which the symbol
; will be resolved in the current namespace, else nil.
(resolve 'foo)
; see also:
(ns-resolve *a-namespace* 'foo)
关于clojure - 如何检查符号在当前命名空间中是否可解析?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1412551/