Function: consp

consp is a function defined in data.c.

Signature

(consp OBJECT)

Documentation

Return t if OBJECT is a cons cell.

Other relevant functions are documented in the list group.

View in manual

Shortdoc

;; list
(consp '(1 2 3))
    => t
  (consp nil)
    => nil

Source Code

// Defined in /usr/src/emacs/src/data.c
{
  if (CONSP (object))
    return Qt;
  return Qnil;
}