Petite Chez Scheme Version 8.4
Copyright (c) 1985-2011 Cadence Research Systems
> (define a '(3 4 5))
> a
(3 4 5)
> (car a)
3
> (cdr a)
(4 5)
> (cadr a)
4
> (cddr a)
(5)
> (cddr a)
(5)
> (cddddr a)
Exception in cddddr: incorrect list structure (3 4 5)
Type (debug) to enter the debugger.
> (cdddddr a)
Exception: variable cdddddr is not bound
Type (debug) to enter the debugger.
> /
#
> (define / (lambda (x y) (* 2 (+ x y))))
> (/ 5 7)
24
> (max 7 8 (+ 9 2) 4)
11
> a
(3 4 5)
> (max a)
Exception in max: (3 4 5) is not a real number
Type (debug) to enter the debugger.
> (apply max a)
5
> (mod 19 4)
3
> (void)
> (list (void))
(#)
> (if (< 6 4) 8 9)
9
> (if 17 8 9)
8
> (if '() 8 9)
8
> (if 0 8 9)
8
> (load "C:/SVN/304/www/Live-in-class/day01-section01.ss")
> (letter-to-number 'B+)
3.5
> (letter-to-number 'B)
3.0
> (letter-to-number 't)
0
>