| function | since v0.0-927 | Edit |
(descendants tag)(descendants h tag)Returns the immediate and indirect children of tag, through a relationship established via derive. h must be a hierarchy obtained from make-hierarchy, if not supplied defaults to the global hierarchy. Note: does not work on JavaScript type inheritance relationships.
(defn descendants
([tag] (descendants @(get-global-hierarchy) tag))
([h tag] (not-empty (get (:descendants h) tag))))