Update the whole structure
问题 Suppose I have some function which returns a struct: (struct layer (points lines areas)) (define (build-new-layer height) ... (layer list-a list-b list-c)) I want to keep track of the last returned result something like: (define top-side (build-new-layer 0)) ; store the first result ... (set! top-side (build-new-layer 0.5)) ; throw away the first result and store the new one However, for that particular code I get the error: set!: assignment disallowed; cannot modify a constant constant: top