A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/HyperSpec/Body/f_ar_in_.htm below:

CLHS: Function ARRAY-IN-BOUNDS-P

CLHS: Function ARRAY-IN-BOUNDS-P Function ARRAY-IN-BOUNDS-P

Syntax:

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

Arguments and Values:

array---an array.

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

generalized-boolean---a generalized boolean.

Description:

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.)

Examples:

 (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

Affected By: None.

Exceptional Situations: None.

See Also:

array-dimensions

Notes:

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

Copyright 1996-2005, LispWorks Ltd. All rights reserved.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4