From: vu0208
Subject: Question on merging linear arrays....
Date: 
Message-ID: <20d6p9$hdv@bingsuns.cc.binghamton.edu>
I am wondering if two linear arrays (one dimensional) of whatever
sizes can be merged into one array. Like two lists can be appended
together such that the resultant list has the elements of both the
sub-lists.

I would like to realize the same function but for uni-dimensional
arrays in as simpler a way as the "append" for lists. (I know I can
accomplish this by creating a new array with size equal to sum of two
arrays to be appended, and then insert elements one by one).

Any help would appreciated.
From: Len Charest
Subject: Re: Question on merging linear arrays....
Date: 
Message-ID: <CHAREST.93Jun24164628@underdog.jpl.nasa.gov>
In article <··········@bingsuns.cc.binghamton.edu> ······@bingsuns.cc.binghamton.edu (vu0208) writes:

   I am wondering if two linear arrays (one dimensional) of whatever
   sizes can be merged into one array. Like two lists can be appended
   together such that the resultant list has the elements of both the
   sub-lists.

Use CONCATENATE. For example:

> (arglist 'concatenate)
(RESULT-TYPESPEC &REST SEQUENCES)
> (setq *print-array* t)
T
> (concatenate 'vector #(a b c) #(d e f))
#(A B C D E F)
> (concatenate 'array #(a b c) #(d e f))
#(A B C D E F)
> (concatenate 'list #(a b c) #(d e f))
(A B C D E F)

..................................................
                                  Len Charest, Jr.
                 JPL Artificial Intelligence Group
                          ·······@aig.jpl.nasa.gov
--
..................................................
                                  Len Charest, Jr.
                 JPL Artificial Intelligence Group
                          ·······@aig.jpl.nasa.gov