null?Test if a value is nil (the empty list).
Parameters:
ANY — Value to testReturns: BOOL — t if nil
Examples:
(null? ()) => #t
(null? '(1)) => #fpair?Test if a value is a pair (cons cell).
Parameters:
ANY — Value to testReturns: BOOL — t if pair
Examples:
(pair? '(1)) => #t
(pair? ()) => #fnotLogical negation.
Parameters:
ANY — Value to negateReturns: BOOL — t if x is falsy
Examples:
(not #f) => #t
(not 0) => #fatom?Test if a value is an atom (not a pair).
Parameters:
ANY — Value to testReturns: BOOL — t if not a pair
Examples:
(atom? 5) => #t
(atom? '(1)) => #fnumber?Test if a value is an integer.
Parameters:
ANY — Value to testReturns: BOOL — t if integer
Examples:
(number? 42) => #t
(number? "42") => #freal?Test if a value is a real number: a number that is not complex. The number modules extend it in place as they load.
Parameters:
ANY — Value to testReturns: BOOL — t if real
Examples:
(real? 42) => #t
(real? 'a) => #fstr?Test if a value is a string.
Parameters:
ANY — Value to testReturns: BOOL — t if string
Examples:
(str? "a") => #t
(str? 'a) => #fsymbol?Test if a value is a symbol.
Parameters:
ANY — Value to testReturns: BOOL — t if symbol
Examples:
(symbol? 'a) => #t
(symbol? "a") => #fchar?Test if a value is a character.
Parameters:
ANY — Value to testReturns: BOOL — t if character
Examples:
(char? #\a) => #t
(char? "a") => #fprocedure?Test if a value is callable (procedure or primitive).
Parameters:
ANY — Value to testReturns: BOOL — t if procedure or primitive
Examples:
(procedure? list) => #t
(procedure? 'list) => #foperative?