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
| 语法 | |
| array-rank array => rank | |
| 参数和值 | |
| array --- 一个 array | |
| rank --- 一个正整数 | |
| 描述 | |
| 返回 array 的维度 |
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
| 语法 | |
| array-in-bounds-p array &rest subscripts => generalized-boolean | |
| 参数和值 | |
| array --- 一个 array | |
| subscripts --- 一个 整数列表, 这个列表的长度和array 的rank 一样 | |
| generalized-boolean --- 一个 generalized-boolean | |
| 描述 | |
| 如果 subscripts 在 array 的范围内, 返回 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
| 语法 | |
| array-element-type array => typespec | |
| 参数和值 | |
| array --- 一个 array | |
| typespec --- 一个 type specifier | |
| 描述 | |
| 返回 array 中元素的类型 |
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
| 语法 | |
| array-dimensions array => dimensions | |
| 参数和值 | |
| array --- 一个 array | |
| dimensions --- 一个整数的列表 | |
| 描述 | |
| 返回数组的维度 |
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
| 语法 | |
| array-dimension array axis-number => dimension | |
| 参数和值 | |
| array --- 一个 array | |
| axis-number --- 一个 number, 小于数组的维度 | |
| dimension --- 一个正数 | |
| 描述 | |
| 返回数组中 axis-number 该维的大小 |
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
| 语法 | |
| arrayp object => generalized-boolean | |
| 参数和值 | |
| object --- 一个 object | |
| generalized-boolean --- 一个 generalized-boolean | |
| 描述 | |
| 如果 object 是一个 array, 则返回 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
| 描述 | |
| vector --- 一维的 array | |
| list --- 一个 conses 的链, 用 car 和cdr 可操作 | |
| array --- 数组 | |
| sequence --- 序列, 包含 list 和 array |
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
| 语法 | |
| stringp object => generalized-boolean | |
| 参数和值 | |
| object --- 一个 object | |
| generalized-boolean --- 一个 generalized-boolean | |
| 描述 | |
| 如果 object 是 string 类型, 返回 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
| 语法 | |
| string-trim character-bag string => trimmed-string | |
| string-left-trim character-bag string => trimmed-string | |
| string-right-trim character-bag string => trimmed-string | |
| 参数和值 | |
| character-bag --- 一个 character 的 sequence | |
| string --- 一个 string 指示符 | |
| trimmed-string --- 一个 string | |
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
| 语法 | |
| string x => string | |
| 参数和值 | |
| x --- 一个 string, 或者 symbol 或者 character | |
| string --- 一个 string | |
| 描述 | |
| 如果 x 是一个 string, 则返回其自身 | |
| 如果 x 是一个 symbol, 则返回他的名字 |