|
From: | Emanuel Berg |
Subject: | Re: The different results obtained by apply function. |
Date: | Thu, 07 Oct 2021 10:11:59 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Hongyi Zhao wrote: > Yep. > > (apply 'cl-mapcar 'list '((1 2)(3 4))) ;; ((1 3) (2 4)) You can get this effect without `apply' with `cl-mapcar', and the usual `mapcar' behavior without cl-mapcar: (cl-mapcar #'list '(1 2) '(3 4)) ; ( (1 3) (2 4)) (cl-mapcar #'list (list '(1 2) '(3 4))) ; (((1 2)) ((3 4))) (mapcar #'list (list '(1 2) '(3 4))) ; (((1 2)) ((3 4))) -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |