|
SketchyLISP Reference |
Copyright (C) 2007 Nils M Holm |
| <<[char-upper-case?] | [Index] | [char<?]>> |
Conformance: R5RS Scheme
Purpose: Test whether a char is white space.
Arguments:
X - char
Implementation:
(define (char-whitespace? x)
(or (char=? x #\space)
(char=? x #\newline)
(char=? x (integer->char 9)) ; HT
(char=? x (integer->char 12)) ; FF
(char=? x (integer->char 13)))) ; CR
Example:
(char-whitespace? #\space) => #t
See also:
char-lower-case?,
char-alphabetic?,
char-numeric?.
| <<[char-upper-case?] | [Index] | [char<?]>> |