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
语法 | |
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
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
类型 | |
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
语法 | |
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
语法 | |
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
描述 | |
序列包括了列表和向量 |
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
语法 | |
elt sequence index => object | |
(setf (elt sequence index) new-object) | |
参数和值 | |
sequence --- 一个属性序列 | |
index --- 属性序列的 index | |
object --- 一个 object | |
new-object --- 一个 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
语法 | |
fill sequence item &key start end => sequence | |
参数和值 | |
sequence --- 一个属性序列 | |
item --- 一个序列 | |
start, end --- 序列范围指示符, 默认 start 为0, end 为 nil | |
描述 | |
用 item 替换掉从 start 到 end 的元素 |