Nyquist / XLISP 2.0  -  Contents | Tutorials | Examples | Reference

arrayp


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

Syntax

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

Description

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

Examples

(arrayp #(0 1 2))  => T    ; array
(setq a #(a b c))  => #(A B C))
(arrayp a)         => T    ; evaluates to an array
(arrayp '(a b c))  => NIL  ; list
(arrayp 1)         => NIL  ; integer
(arrayp 1.2)       => NIL  ; float
(arrayp 'a)        => NIL  ; symbol
(arrayp #\a)       => NIL  ; character
(arrayp NIL)       => NIL  ; NIL

See also:

  Back to Top


Nyquist / XLISP 2.0  -  Contents | Tutorials | Examples | Reference