Created
December 28, 2016 12:17
-
-
Save zhouqiang-cl/516e52b59ea3b2094e3ae0e1e5990713 to your computer and use it in GitHub Desktop.
common lisp 的mapcar
This file contains hidden or 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 function &rest lists+ => result-list | |
参数和值 | |
function --- 一个 function 指示符 | |
list --- 一个 list | |
描述 | |
mapcar 使用 function 对 lists 的 元素进行一个个求值 | |
代码 | |
* (mapcar #'car '((1 a) (2 b) (3 c))) | |
(1 2 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment