Created
March 25, 2015 08:53
-
-
Save kobapan/bea747e4e469f80184eb to your computer and use it in GitHub Desktop.
elisp mapcar*の使い方
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(mapcar* 'cons '(a b c) '(1 2 3 4)) | |
;=>((a . 1) (b . 2) (c . 3)) | |
(mapcar* 'cons '(a b c) '(1 2 3 4) '(5 6 7)) | |
;=>error | |
(mapcar* (lambda (a b c) | |
(+ a b c)) | |
'(1 2 3) | |
'(10 20 30) | |
'(100 200 300)) | |
;=>(111 222 333) | |
(mapcar* (lambda (a b) | |
(+ a b c)) | |
'(1 2 3) | |
'(10 20 30) | |
'(100 200 300)) | |
;=>error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment