The 'char-not-greaterp' function takes one or more character arguments.
It checks to see if all the character arguments are monotonically
non-decreasing. T is returned
if the arguments are of monotonically non-decreasing ASCII value. In the case of two
arguments, this has the effect of testing if 'char1' is less than or equal
to 'char2'. This test is case insensitive, the character '#\a' is considered
to be the same ASCII value
(char-not-greaterp #\a #\b) ; returns T (char-not-greaterp #\b #\a) ; returns NIL (char-not-greaterp #\a #\b #\c) ; returns T (char-not-greaterp #\a #\a) ; returns T (char-not-greaterp #\a #\b #\b) ; returns T (char-not-greaterp #\A #\a) ; returns T (char-not-greaterp #\a #\A) ; returns T
See the
char-not-greaterp
predicate function in the