(define my-append
(lambda (L1 L2)
(cond
((null? L2) '())
(else (cons L1 (car (my-append L1 (cdr L2)))))
)
)
)
its supposed to
(my-append L1 L2) takes two lists L1 and L2 and returns the concatenation of L1 to the end of L2. Note that concatenating two lists is not the same as "consing" two lists together!
(my-append '() '(a b)) => (a b)
(my-append '(a b) '()) => (a b)
(my-append '(c d) '(a b)) => (a b c d)
i have no clue how to start this!!!!!!!!!!!!!!!!!!!!! been lookking at thise for 2 hrs!!!
(lambda (L1 L2)
(cond
((null? L2) '())
(else (cons L1 (car (my-append L1 (cdr L2)))))
)
)
)
its supposed to
(my-append L1 L2) takes two lists L1 and L2 and returns the concatenation of L1 to the end of L2. Note that concatenating two lists is not the same as "consing" two lists together!
(my-append '() '(a b)) => (a b)
(my-append '(a b) '()) => (a b)
(my-append '(c d) '(a b)) => (a b c d)
i have no clue how to start this!!!!!!!!!!!!!!!!!!!!! been lookking at thise for 2 hrs!!!