Skip to content

Instantly share code, notes, and snippets.

@kobapan
Created March 25, 2015 08:53
Show Gist options
  • Save kobapan/bea747e4e469f80184eb to your computer and use it in GitHub Desktop.
Save kobapan/bea747e4e469f80184eb to your computer and use it in GitHub Desktop.
elisp mapcar*の使い方
(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