I now have a problem using reduce to implement my own version of the copy list. This is what I did:
(defun my-copy-list (lst)
(reduce
(cons x y))
lst :initial-value nil :from-end t))
However, my teacher said that there is no need to use this lambda, I am confused by this. How can we achieve the same functionality without using this lambda (but should use "reduce"). Many thanks.
Kevin source
share