Re: list, vectors, and stucts
- From: "Harold Lee" <harold3@xxxxxxxxx>
- Date: 1 Mar 2007 14:59:21 -0800
Oops, forgot to post my updated macro code, sorry:
(defmacro make-initialized-array (specifications &rest values)
"Make an array to hold the values specified."
(let ((num (length values))
(var (gensym)))
`(let ((,var (make-array ,num ,@specifications)))
(setf ,@(loop for v in values
for i from 0
append (list `(aref ,var ,i) v)))
,var)))
.
- Follow-Ups:
- Re: list, vectors, and stucts
- From: Vassil Nikolov
- Re: list, vectors, and stucts
- References:
- list, vectors, and stucts
- From: S. Robert James
- Re: list, vectors, and stucts
- From: S. Robert James
- Re: list, vectors, and stucts
- From: Zach Beane
- Re: list, vectors, and stucts
- From: Harold Lee
- list, vectors, and stucts
- Prev by Date: Re: list, vectors, and stucts
- Next by Date: Re: list, vectors, and stucts
- Previous by thread: Re: list, vectors, and stucts
- Next by thread: Re: list, vectors, and stucts
- Index(es):
Relevant Pages
|