Code: Select all
(define (paint d r) (if (empty? d) null (if (empty? r) null (
(list
(first d) (first r))
(paint (rest d) (rest r))
)
)))
(paint (list 1 2 3 4) (list 1 2 3))
function call: expected a function after the open parenthesis, but received (list 3 3)