Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

char-not-lessp

char-not-lessp

type: predicate function (subr) 
location: built-in
source file: xlstr.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(char-not-lessp <char1> <charN> ... )
        <char1>         -       a character expression
        <charN>         -       character expression(s) to compare

DESCRIPTION

The CHAR-NOT-LESSP function takes one or more character arguments. It checks to see if all the character arguments are monotonically non-increasing. T is returned if the arguments are of monotonically non-increasing ASCII value. In the case of two arguments, this has the effect of testing if <char1> is greater than or equal to <char2>. This test is case insensitive - the character #\a is considered to be the same ASCII value as #\A.

EXAMPLES

(char-not-lessp #\a #\b)                ; returns NIL
(char-not-lessp #\b #\a)                ; returns T
(char-not-lessp #\c #\b #\a)            ; returns T
(char-not-lessp #\a #\a)                ; returns T 
(char-not-lessp #\c #\a #\b)            ; returns NIL
(char-not-lessp #\A #\a)                ; returns T
(char-not-lessp #\a #\A)                ; returns T


Go to the first, previous, next, last section, table of contents.