Function: dash--match-cons-get-car

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

Signature

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

Documentation

Helper function generating idiomatic code to get nth car.

Source Code

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