common lisp的几个基本概念

时间:2023-03-10 06:20:05
common lisp的几个基本概念

S-表达式

quote

nil 与 ()

cons car cdr

真假 predicate 谓词与 t 与 nil

null 函数 与 not 函数

if then else

and 与 or

defun

recursion 递归

谓词 eql 与 equal

format 与 read:format 在函数体内调用不会输出 nil(format 函数本身有返回值为 nil)

let 与 函数体

setf

remove

Iteration 迭代:do

apply 与 funcall

lambda

typep

https://zh.wikipedia.org/wiki/Common_Lisp