> (+ 1 2 3 4 5) 15 > (+) 0 > (append '(1 2 3) '(4 5 6) '(7 8 9)) (1 2 3 4 5 6 7 8 9) > (max 1 5 7 8 1) 8 > ((lambda (x y) (+ x x y)) 1 2) 4 > ((lambda (x y) (+ x x y)) 1) [image] [image] #: arity mismatch; the expected number of arguments does not match the given number expected: 2 given: 1 > (maximum 1 2) 2 > (maximum 2 1) 1 > (maximum) [image] [image] maximum: arity mismatch; the expected number of arguments does not match the given number expected: at least 1 given: 0 > (maximum 1) [image] [image] mcdr: contract violation expected: mpair? given: () > (maximum 1) 1 > (maximum 1 2 3) 3 > (maximum 1 2 3 1 5 2) 5 > (map list '(1 2 3) '(4 5 6) '(7 8 9)) ((1 4 7) (2 5 8) (3 6 9)) > (foldr1 + '(1 2 3 4 5)) 15 > (apply + '(1 2 3 4 5)) 15 > (foldr1 append '((1 2 3) (4 5 6) (7 8 9))) (1 2 3 4 5 6 7 8 9) > (apply append '((1 2 3) (4 5 6) (7 8 9))) (1 2 3 4 5 6 7 8 9) > (apply + '(1 2 3 4 5 (6 7 8))) [image] [image] +: contract violation expected: number? given: (6 7 8) argument position: 6th > (foldr1 snoc '(1 2 3 4 5)) [image] [image] mcar: contract violation expected: mpair? given: 5 > (foldr cons '() '(1 2 3 4)) [image] [image] foldr: undefined; cannot reference an identifier before its definition > (foldr cons '() '(1 2 3 4)) (1 2 3 4) > (apply list '(1 2 3 4)) (1 2 3 4) > (append '() '(1 2 3) '(4 5 6)) > (append '() '(1 2 3) '(4 5 6)) [image] [image] application: not a procedure; expected a procedure that can be applied to arguments given: #f > (append '() '(1 2 3) '(4 5 6)) error > (append '(1 2 3) '(4 5 6) '(7 8 9)) --> > (append '() '(1 2 3) '(4 5 6)) [image] [image] mcons: arity mismatch; the expected number of arguments does not match the given number expected: 2 given: 1 > (append '() '(1 2 3) '(4 5 6)) [image] Interactions disabled; out of memory > (append '((1 2 3) (4 5 6))) [image] Interactions disabled; out of memory > append # > (append '((1 2 3) (4 5 6))) ((1 2 3) (4 5 6)) > (append '(1 2 3) (4 5 6)) [image] [image] application: not a procedure; expected a procedure that can be applied to arguments given: 4 > (area 0 0 3 0 0 -4) > (append '(1 2 3) '(4 5 6)) (1 2 3 4 5 6) > (append '(1 2 3) '(4 5 6) '(7 8 9)) (1 2 3 4 5 6 7 8 9) > (append '(1 2 3)) (1 2 3) > (append) () > (apply + '(1 2 3 4 5)) 15 > (apply + 1 2 '(3 4 5)) 15 > (apply + (cons 1 (cons 2 '(3 4 5)))) 15 > (apply + (cons 2 '(3 4 5))) 14 > (apply + 2 '(3 4 5)) 14 > (append '(1 2 3) '(4 5 6) '(7 8 9)) (1 2 3 4 5 6 7 8 9) > (append '(1 2 3)) (1 2 3) > (apply apply + '(1 2 3 4)) [image] [image] mcar: contract violation expected: mpair? given: 4 > (apply apply + '((1 2 3 4))) 10 > (apply + '(1 2 3 4)) 10 > (apply apply apply + '(((1 2 3 4)))) 10 > (apply append '((1 2 3) (4 5 6))) (1 2 3 4 5 6) > (apply maximum '(1 4 6 9)) 9 > (apply f x y) [image] [image] f: undefined; cannot reference an identifier before its definition > (apply f (list x y)) [image] [image] f: undefined; cannot reference an identifier before its definition > (f x y) > (evali 10) 10 > 10 10 > (define > a 2 > (evali a) 2 > (id a) 2 > 'a a > (id 'a) a > (evali 'a) 2 > ''a 'a > (id ''a) 'a > (evali ''a) a > (evali (list '+ 5 7 a)) 14 > (evali (list '+ 5 7 'a)) 14 > b [image] [image] b: undefined; cannot reference an identifier before its definition > (evali (list 'define 'b 5)) > b 5 > (apply + '(1 2 3)) --> (+ 1 2 3) > (apply + '(1 2 3)) 6