Function: SINGLE

Documentation

predicate which returns true, if list has exactly one element

Source

(defun single (lst)
  "predicate which returns true, if list has exactly one element"
  (and (consp lst)
       (not (cdr lst))))
Source Context