【发布时间】:2015-11-22 20:04:30
【问题描述】:
我很好奇为什么会这样(正如我在阅读 the documentation on the dot special form 后所期望的那样):
(map #(. % isInstance {}) [clojure.lang.IPersistentMap])
返回:
(true)
但这不是:
(. clojure.lang.IPersistentMap isInstance {})
我收到一个错误“没有匹配的方法:isInstance”。形式与上面的map 函数调用完全相同,但在map 之外,它不起作用。为什么?
【问题讨论】:
标签: clojure clojure-java-interop