Structures support this style of updating: (struct foo (bar baz) #:transparent)
(define one (foo "hello" 1)) ;; Copy all fields from "one" and update baz to 2 (define two (struct-copy foo one (baz 2))) They also have immutable fields by default. Best Regards, Alex. -- 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.