std-dotted-pair-p | ![]() |
Predicate if the expression is a dotted pair, as (x . y) created with (CONS
<atom> <atom>)
(std-dotted-pair-p '(0 . 1)) => T (std-dotted-pair-p '((0 . 1))) => nil (std-dotted-pair-p '(0 1 . 2)) => nil
Note
There exists bad lists like (0 1 . 2) which are no valid lists and no dotted pairs. You cannot pass them to list functions like LENGTH
or LAST
.
expr: any valid lisp expression
T or nil.
None.
(std-require 'STDLIST)
Defined in STDLIST