[plt-scheme] struct copy with optional arguments
Henk Boom wrote:
> On 03/04/2008, Jon Rafkind <workmin at ccs.neu.edu> wrote:
>
>> I implemented a short macro to generate a function that copies a struct and
>> optionally replaces some values with arguments to the function. I got tired
>> of manually extracting the values from a struct just to update 1 field so I
>> was guessing maybe other people were too.
>>
> ...
>
>> I found the copy-struct module from David Van Horn which is pretty close,
>> but slightly more verbose( in usage ).
>> http://www.koders.com/scheme/fid839A35F3E45E769966841A339D968A6B09A03C27.aspx
>>
>
> Isn't there also a copy-struct in struct.ss?
>
>
Oh so there is, and its that same source code anyway. Serves me right
for not searching!