ClojureDocs

导航

命名空间

isa?

clojure.core

1.0 版本开始推出 (源代码)
  • (isa? 子类 父类)
  • (isa? h 子类 父类)
Returns true if (= child parent), or child is directly or indirectly derived from
parent, either via a Java type inheritance relationship or a
relationship established via derive. h must be a hierarchy obtained
from make-hierarchy, if not supplied defaults to the global
hierarchy