For example, (proc7 (list 1 2 3 4 5)) should return (2 2 6 4 10)
I tried the following:
(define procedure(lambda(x) (cons (car x)(cdr x))))
However, I think that the above code only works one time, and I need it to work recursively.
How could I do that?
Do I need more than one procedure?

New Topic/Question
Reply


MultiQuote








|