Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

arrayp

arrayp

type: predicate function (subr)
location: built-in
source file: xlbfun.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(arrayp <expr> )
        <expr>          -       the expression to check

DESCRIPTION

The ARRAYP predicate checks if an <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


Go to the first, previous, next, last section, table of contents.