Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 21, 2016 15:02
Show Gist options
  • Save zhouqiang-cl/1033aed7dd6713ac7f5dc0ad03b4d689 to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/1033aed7dd6713ac7f5dc0ad03b4d689 to your computer and use it in GitHub Desktop.
common lisp 的函数 FUNCALL
语法
funcall function &rest args => result*
参数和值
function --- 一个函数指示符
args --- 函数的参数
results --- function 返回的 values
描述
funcall 执行函数, 如果 function 是一个 符号,则强制找到这个符号所代表的函数,然后进行求值
代码
* (funcall 'car '(1 2 3))
1
* (funcall #'car '(1 2 3))
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment