Pair?

(pair? argument) -> boolean

Checks argument to determine if it is a pair. Returns true or false.

() is not considered a pair. Rather, it is <null>.

Examples:

>>(pair? '(a b))
:: #t
>>(pair? "test")
:: #f
>>(pair? '(a . b))
:: #t

(A "dotted pair".)

See Also: list?