I tried to use this code, but it returns (k k k k k)
(mapcar (lambda (x) 'cons x '(k)) '(a b c d e))
What am i doing wrong here? Why doesn't cons work?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community