p.s. The package supplies a `define-struct-updaters` macro separately. This is handy because you can use it on any structs -- including those from other modules you don't control. If you do this frequently for your own structs, you could of course write a little macro to `(begin (struct id ____) (define-struct-updaters id))`.
On Thu, Dec 7, 2017 at 2:19 PM, Greg Hendershott <greghendersh...@gmail.com> wrote: > On Thu, Dec 7, 2017 at 11:08 AM, David Storrs <david.sto...@gmail.com> wrote: >> assembled. There's no reason not to use functional update, but I >> haven't seen a straightforward way to do that since there is no >> 'set-db-chunk-foo' as opposed to 'set-db-chunk-foo!'. I guess I need >> to use 'struct-copy'? At that point it seems more sensible to have a > > There is a struct-update package: > > https://pkgd.racket-lang.org/pkgn/package/struct-update > > Doc: > > http://docs.racket-lang.org/struct-update/index.html -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.