Scheme Flashcards
1
Q
Scheme
A
- functional language
- dynamically typed (run time)
- lists are primary data structure
- everything is an expression that yields a value (no stmts, prefix notation)
2
Q
Scheme conditionals
A
if (if-then-else)
cond (switch, or sequence of if-then-elses)
3
Q
booleans
A
t and #f
4
Q
let
A
evaluates all expressions first, then binds
5
Q
let*
A
evaluates one expression at a time and binds
6
Q
quoting
A
used to treat expressions as data
7
Q
(cadr x)
A
(car(cdr x))
8
Q
(cddr x)
A
(cdr(cdr x))
9
Q
(caddr x)
A
(car(cdr(cdr x)))