A number of calls of the function f. | Lecture 2 - slide 40 : 46 Program 1 |
0> (define (f rp . optional-parameter-list) (let ((op1 (optional-parameter 1 optional-parameter-list 1)) (op2 (optional-parameter 2 optional-parameter-list "a")) (op3 (optional-parameter 3 optional-parameter-list #f))) (list rp op1 op2 op3))) 1> (f 7) (7 1 "a" #f) 2> (f 7 "c") (7 "c" "a" #f) 3> (f 7 8) (7 8 "a" #f) 4> (f 7 8 9) (7 8 9 #f) 5> (f 7 8 9 10) (f 7 8 9 10) 6> (f 7 8 9 10 11) (7 8 9 10)