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
语法 | |
copy-seq sequence => copied-sequence | |
参数和值 | |
sequence --- 一个属性列表 | |
copied-sequence --- 一个属性列表 | |
描述 | |
拷贝一个属性列表, 拷贝后的属性列表和之前的属性列表内容一致 | |
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
描述 | |
序列包括了列表和向量 |
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
语法 | |
rplaca cons object => cons | |
rplacd cons object => cons | |
参数和值 | |
cons --- 一个 cons | |
object --- 一个 object | |
描述 | |
rplaca 将 cons 的 car 替换成 object |
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
语法 | |
atom object => generalized-boolean | |
变量和值 | |
object --- 一个object | |
generalized-boolean --- 一个通用型 boolean | |
描述 | |
如果 object 是一个 ATOM 类型的对象, 返回 true, 否则返回 false | |
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
类型 | |
ATOM | |
描述 | |
非 cons |
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
generalized-boolean --- symbol nil 代表假, 其他情况代表真 |
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
语法 | |
symbolp object => generalized-boolean | |
参数和值 | |
object --- 一个 object | |
generalized-boolean --- 一个 generalized-boolean | |
描述 | |
如果 object 是一个 symbol, 就返回 true, 否则返回 false | |
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
语法 | |
maphash function hash-table => nil | |
参数和值 | |
function --- 一个函数指示符, 这个函数接受两个参数 key 和 value | |
hash-table --- 一个hash table | |
描述 | |
遍历 hash table 的每一个 entry, 对使用 key 和 value 对函数进行调用 |
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
语法 | |
gethash key hash-table &optional default => value, present-p | |
(setf (gethash key hash-table &optional default) new-value) | |
参数和值 | |
key --- 一个对象 | |
hash-table --- 一个 hash table | |
描述 | |
获取 key 的值和设置key的值 |
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
语法 | |
hash-table-size hash-table => size | |
参数和值 | |
hash-table --- 一个hash table | |
size --- 一个正整数 | |
描述 | |
返回 hash-table 的 size |