- pair? objprocedure
Pair? returns #t if obj is a pair, and otherwise returns #f. NOTE: Weak pairs are regarded as pairs by this procedure.
(pair? '(a . b)) ===> #t (pair? '(a b c)) ===> #t (pair? '()) ===> #f (pair? '#(a b)) ===> #f (pair? (cons 1 2)) ===> #t (import (chicken base)) (pair? (weak-cons 1 2)) ===> #t