pairp
pairp(g_obj) =>t/nil
Description
Checks if an object is a cons object, that is, a non-empty list. This function is equivalent to dtpr.
The suffix p is usually added to the name of a function to indicate that it is a predicate function.
Arguments
Value Returned
Examples
(pairp nil)
=> nil
(pairp 123)
=> nil
(pairp '(1 2))
=> t
Related Topics
Return to top