《通链参考手册》


Function LENGTH

●语法设定:

length sequence => n

●参数和值:

sequence---a proper sequence.

n---a non-negative integer.

●详情:

Returns the number of elements in sequence.

If sequence is a vector with a fill pointer, the active length as specified by the fill pointer is returned.

●例子:

 (length "abc") =>  3
 (setq str (make-array '(3) :element-type 'character 
                            :initial-contents "abc"
                            :fill-pointer t)) =>  "abc"
 (length str) =>  3
 (setf (fill-pointer str) 2) =>  2
 (length str) =>  2

●受制于: 无。

●例外情况:

Should be prepared to signal an error of type type-error if sequence is not a proper sequence.

●更多信息:

list-length, sequence

●说明: 无。


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案