[ ^ CSE 341 | section index | <-- previous | next -->]

Scheme types

Scheme types are strong, dynamic and implicit. The standard types are as follows:

Virtually all Scheme types can be treated uniformly:

(define jumbled-list '( 12 ; number (lambda (n) (* n n)) ; function "foo" ; string #\a ; char #f ; boolean 'foo ; symbol '(a b c d) ; list ))

Recall the primitive operations that apply to lists of cons cells:

Try evaluating the following, and naming the type:

(car jumbled-list) => (cdr (cdr jumbled-list)) => ((car (cdr jumbled-list)) 5) => (cons (car jumbled-list) ((cadr jumbled-list) 4)) =>

Last modified: Wed Mar 29 19:48:46 PST 2000