Welcome to W3Courses
 Like Us on Facebook

Copy List Using Scheme Source Code

The following code copies a list

 (define (copy x)
       (cond((null? x) ‘())
               (else (cons (car x) (copy(cdr x)) ))))

Share