Feedback
"Bettina Schimanski" <[email protected]>
| Newsgroups | gmane.lisp.allegro |
|---|---|
| Message-ID | <001c01c1f2ac$caed4a90$6401a8c0@BKSComputer> |
Thank you to everyone who was kind of enough to respond to my email/post. My array copy problem was further complicated by the fact that I didn't have a one dimensional array, and therefore could not use copy-seq as some had kindly suggested. Shannon Spires gave me a correct avenue for copying my array and it works very well. For future reference, I just wanted to recap what she mentioned for those who may need to do something similar and can be assured that this is one valid solution: ; Here's your original two-dimensional array: (setf original-array (make-array '(10 20))) (copy-seq original-array) --> ERROR, because it's not a sequence Correct copy of a two dimensional (and most likely any dimensional) array: (setf linearization-array (make-array 200 :displaced-to original-array)) (setf linear-copied-array (copy-seq linearization-array)) (setf final-copied-array (make-array '(10 20) :displaced-to linear-copied-array)) See Shannon's reply to the forum for a more detailed explanation which I found very insightful and helpful. Thanks again for everyone's feedback! ~Bettina :)