function | since v0.0-927 | ![]() | Edit |
(children loc)
Returns a seq of the children of node at loc, which must be a branch
(defn children
[loc]
(if (branch? loc)
((:zip/children (meta loc)) (node loc))
(throw "called children on a leaf node")))