Next: , Up: iklib fixnums   [Index]


6.30.1 Predicates

Function: list-of-fixnums? obj

Return #t if obj is null or a proper list of fixnums; otherwise return #f.

Function: fxnonpositive? fx
Function: fxnonnegative? fx

Return #t if fx is, respectively, non–positive or non–negative; else return #f.

Function: zero-fixnum? obj
Function: non-zero-fixnum? obj

Return #t if obj is a zero or non–zero fixnum; otherwise return #f. If obj is not a fixnum: return #f.

Function: positive-fixnum? obj
Function: negative-fixnum? obj
Function: non-positive-fixnum? obj
Function: non-negative-fixnum? obj

Return #t if obj is a fixnum respectively: positive, negative, non–positive, non–negative; otherwise return #f. If obj is not a fixnum: return #f.

Function: byte-fixnum? obj

Return #t if obj is a byte value. A “byte” is a fixnum in the range [-128, 127].

Function: zero-byte-fixnum? obj
Function: positive-byte-fixnum? obj
Function: negative-byte-fixnum? obj

Return #t if obj is a byte value, respectively: zero, positive, negative.

Function: octet-fixnum? obj

Return #t if obj is an octet value. An “octet” is a fixnum in the range [0, 255].

Function: zero-octet-fixnum? obj
Function: positive-octet-fixnum? obj

Return #t if obj is an octet value, respectively: zero, positive.