Lecture overview -- Keyboard shortcut: 'u'  Previous page: Other Data Types [Section] -- Keyboard shortcut: 'p'  Next page: Vectors -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home    Lecture 2 - Page 27 : 46
Functional Programming in Scheme
Expressions, Types, and Functions
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