[racket] how to use syntax-case

From: Greg Hendershott (greghendershott at gmail.com)
Date: Thu Feb 6 20:15:34 EST 2014

> I noticed I could make a copy if I use "array" function provided there. Here
> is its format:
> (array shape obj ...)
> I mean, in order to make a copy of an array, the idea must be
> (array (array-shape the-original) obj ...)
> ;however, I wondered how I should express "obj ..." part. The supplement of
> SRFI25, or arlib.scm, provides array->list function, so I noticed I've got
> to use a macro like this in the Common Lisp style.

Although I haven't used srfi-25, I think something like this would work?

  (apply array (list* (array-shape the-original)
                      (array->list the-original)))

Posted on the users mailing list.