Function: combobulate-ztree-zipper

combobulate-ztree-zipper is a natively compiled function defined in combobulate-ztree.el.

Signature

(combobulate-ztree-zipper BRANCHP CHILDREN MAKE-NODE ROOT)

Documentation

Create a new zipper structure.

BRANCHP is a function that, given a node, returns t if it can have children, even if it currently doesn't.

CHILDREN is a function that, given a branch node, returns a seq of its children.

MAKE-NODE is a function that, given an existing node and a seq of children, returns a new branch node with the supplied children.

ROOT is the root node.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-ztree.el
;;;; Construction

(defun combobulate-ztree-zipper (branchp children make-node root)
  "Create a new zipper structure.

BRANCHP is a function that, given a node, returns t if it can
have children, even if it currently doesn't.

CHILDREN is a function that, given a branch node, returns a seq
of its children.

MAKE-NODE is a function that, given an existing node and a seq of
children, returns a new branch node with the supplied children.

ROOT is the root node."
  (combobulate-ztree--with-meta
   (cons root nil)
   `((:branchp . ,branchp) (:children . ,children) (:make-node . ,make-node))))