Function: dash--match-cons-get-cdr

dash--match-cons-get-cdr is a byte-compiled function defined in dash.el.

Signature

(dash--match-cons-get-cdr SKIP-CDR SOURCE)

Documentation

Helper function generating idiomatic code to get nth cdr.

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun dash--match-cons-get-cdr (skip-cdr source)
  "Helper function generating idiomatic code to get nth cdr."
  (cond
   ((= skip-cdr 0)
    source)
   ((= skip-cdr 1)
    `(cdr ,source))
   (t
    `(nthcdr ,skip-cdr ,source))))