From: Thomas A. Russ
Subject: Re: specifying arrays
Date: 
Message-ID: <ymiu0biq4sw.fsf@sevak.isi.edu>
···@zedat.fu-berlin.de (Stefan Ram) writes:

> ···@zedat.fu-berlin.de (Stefan Ram) writes:
> >  The expression
> >#( a b c )
> >  denotes an array with three symbols. Is there any means of
> >  Common Lisp to write this as:
> >( array a b c )
> 
>   OK, I searched for 7 minutes before the post, but 1 minute
>   after posting the above question, I found:
> 
> ( vector a b c )

And then there is the more general form MAKE-ARRAY with the
:initial-contents keyword argument.

(make-array 3 :initial-contents '(a b c))
    => #(A B C)

(make-array '(2 2) :initial-contents '((a b) (c d)))
    => #2A((A B) (C D))


-- 
Thomas A. Russ,  USC/Information Sciences Institute