ClojureDocs

Nav

Namespaces

underive

clojure.core

Available since 1.0 (source)
  • (underive tag parent)
  • (underive h tag parent)
Removes a parent/child relationship between parent and
tag. h must be a hierarchy obtained from make-hierarchy, if not
supplied defaults to, and modifies, the global hierarchy.
1 Example
;; create a simple hierarchy using the global hierarchy
;; and demonstrate how underive is used

user=> (derive ::dog ::animal)
nil
user=> (derive ::spaniel ::dog)
nil
user=> (derive ::tabby ::dog)
nil
user=> (ancestors ::tabby)
#{:user/dog :user/animal}
user=> (underive ::tabby ::dog)
nil
user=> (ancestors ::tabby)
nil
See Also

Establishes a parent/child relationship between parent and tag. Parent must be a namespace-qualifi...

Added by bfontaine
0 Notes
No notes for underive