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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Scheme conditionals

A

if (if-then-else)

cond (switch, or sequence of if-then-elses)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

booleans

A

t and #f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

let

A

evaluates all expressions first, then binds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

let*

A

evaluates one expression at a time and binds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

quoting

A

used to treat expressions as data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

(cadr x)

A

(car(cdr x))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

(cddr x)

A

(cdr(cdr x))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

(caddr x)

A

(car(cdr(cdr x)))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly