Expressions, Types, and Functions
- slide 27 : 46
Other simple types
Besides numbers, Scheme also supports booleans, characters, and symbols
Booleans
True
is denoted by
#t
and
false
by
#f
Every non-
false
values count as true in
if
and
cond
Characters
Characters are denoted as #\a, #\b, ...
Some characters have symbolic names, such as #\space, #\newline
Symbols
Symbols are denoted by quoting their names:
'a
,
'symbol
, ...
Two symbols are identical in the sense of
eqv?
if and only if their names are spelled the same way
R5RS: Booleans
R5RS: Characters
R5RS: Symbols
R5RS: Equivalence predicates