《通链参考手册》


Function ARRAY-IN-BOUNDS-P

●语法设定:

array-in-bounds-p array &rest subscripts => generalized-boolean

●参数和值:

array---an array.

subscripts---a list of integers of length equal to the rank of the array.

generalized-boolean---a generalized boolean.

●详情:

Returns true if the subscripts are all in bounds for array; otherwise returns false. (If array is a vector with a fill pointer, that fill pointer is ignored.)

●例子:

 (setq a (make-array '(7 11) :element-type 'string-char))
 (array-in-bounds-p a 0  0) =>  true
 (array-in-bounds-p a 6 10) =>  true
 (array-in-bounds-p a 0 -1) =>  false
 (array-in-bounds-p a 0 11) =>  false
 (array-in-bounds-p a 7  0) =>  false

●受制于: 无。

●例外情况: 无。

●更多信息:

array-dimensions

●说明:

 (array-in-bounds-p array subscripts)   
 ==  (and (not (some #'minusp (list subscripts)))
         (every #'< (list subscripts) (array-dimensions array)))

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