XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next

arrayp


Type:   -   predicate function (subr)
Source:   -   xlbfun.c

Syntax

(arrayp expr)
expr - the expression to check
returns -  T  if the value is an array, NIL otherwise

Description

The 'arrayp' predicate function checks if 'expr' is an array.  T  is returned if 'expr' is an array, NIL is returned otherwise.

Examples

(arrayp #(0 1 2))   ; returns T - array
(setq a #(a b c))
(arrayp a)          ; returns T - evaluates to array
(arrayp '(a b c))   ; returns NIL - list
(arrayp 1)          ; returns NIL - integer
(arrayp 1.2)        ; returns NIL - float
(arrayp 'a)         ; returns NIL - symbol
(arrayp #\a)        ; returns NIL - character
(arrayp NIL)        ; returns NIL - NIL

See the arrayp predicate function in the XLISP 2.0 manual.

  Back to Top


XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next