unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* The different results obtained by apply function.
@ 2021-10-07  2:46 Hongyi Zhao
  2021-10-07  5:41 ` Michael Heerdegen
  0 siblings, 1 reply; 5+ messages in thread
From: Hongyi Zhao @ 2021-10-07  2:46 UTC (permalink / raw)
  To: help-gnu-emacs

I try to reproduce the results given here [1], as follows:

(mapcar 'list '((1 2)(3 4))) ;; (((1 2)) ((3 4)))

(funcall 'mapcar 'list '((1 2)(3 4))) ;; (((1 2)) ((3 4)))

(apply 'mapcar 'list '((1 2)(3 4)) ()) ;; (((1 2)) ((3 4)))

The last one is different from the one given on the URL above:

(apply 'mapcar 'list '((1 2)(3 4))) ;; ((1 3) (2 4))

[1] https://stackoverflow.com/a/68876647

Any hints for this?
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-07  8:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-07  2:46 The different results obtained by apply function Hongyi Zhao
2021-10-07  5:41 ` Michael Heerdegen
2021-10-07  7:57   ` Hongyi Zhao
2021-10-07  8:11     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-07  8:25       ` Emanuel Berg via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).