Function: combobulate-get-nodes-at-depth

combobulate-get-nodes-at-depth is a natively compiled function defined in combobulate-navigation.el.

Signature

(combobulate-get-nodes-at-depth TREE DEPTH)

Documentation

Walk TREE and find all nodes at DEPTH.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-navigation.el
(defun combobulate-get-nodes-at-depth (tree depth)
  "Walk TREE and find all nodes at DEPTH."
  (if (zerop depth)
      (if (consp tree)
          (list (car tree))
        nil)
    (if (consp tree)
        (apply 'append (mapcar (lambda (node) (combobulate-get-nodes-at-depth node (1- depth)))
                               (cdr tree)))
      nil)))