function | since v0.0-927 | clojure.core/parents | Edit |
(parents tag)
(parents h tag)
Returns the immediate parents of tag, either via a JavaScript 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
(defn parents
([tag] (parents @(get-global-hierarchy) tag))
([h tag] (not-empty (get (:parents h) tag))))