Function: treemacs-iter->peek

treemacs-iter->peek is a byte-compiled function defined in treemacs-persistence.el.

Signature

(treemacs-iter->peek SELF)

Documentation

Peek at the first element of SELF.

SELF: Treemacs-Iter struct.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-persistence.el
(define-inline treemacs-iter->peek (self)
  "Peek at the first element of SELF.

SELF: Treemacs-Iter struct."
  (declare (side-effect-free t))
  (inline-letevals (self)
    (inline-quote
     (or (car (treemacs-iter->list ,self))
         ;; we still need something to make the `s-matches?' calls work
         "__EMPTY__"))))