The Grinnell Scheme Web:
Integer predicates

What resources does Scheme provide for testing integers and determining their attributes?

Apart from the type predicate integer?, there are comparisons (equality, greater-than, and the like) and predicates that test the sign of an integer (positive, negative, or zero) and its parity (even or odd). Here's the full list:


Next topic
Previous topic
Table of contents


This document is available on the World Wide Web as

http://www.math.grin.edu/~stone/scheme-web/integer-predicates.html


created July 1, 1995
last revised December 29, 1995

Copyright 1995 by John David Stone (stone@math.grin.edu)