[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The different results obtained by apply function.
From: |
Hongyi Zhao |
Subject: |
Re: The different results obtained by apply function. |
Date: |
Thu, 7 Oct 2021 15:57:51 +0800 |
On Thu, Oct 7, 2021 at 1:42 PM Michael Heerdegen
<michael_heerdegen@web.de> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > The last one is different from the one given on the URL above:
> >
> > (apply 'mapcar 'list '((1 2)(3 4))) ;; ((1 3) (2 4))
>
> That gives an error with Emacs Lisp - but please try with `cl-mapcar'.
> Is that enough as hint?
Yep.
(apply 'cl-mapcar 'list '((1 2)(3 4))) ;; ((1 3) (2 4))
HZ