Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 28, 2016 12:17
Show Gist options
  • Save zhouqiang-cl/516e52b59ea3b2094e3ae0e1e5990713 to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/516e52b59ea3b2094e3ae0e1e5990713 to your computer and use it in GitHub Desktop.
common lisp 的mapcar
语法
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