- (record-vector-set! R-V #:NAME-k NEW-VALUE)procedure
- (rv-set! R-V #:NAME-k [#:SUB-R-V-NAME-j ...] NEW-VALUE)syntax
record-vector-set! is a mutator of the record-vector attribute NAME rv-set! - recursive macro which able set value not only R-V but attributes compatible with record-vector structure
> (define r (record-vector #:pos 0.0 #:line (make-rv #:color 'red #:a 1.0 #:b 2))) > r => (((#:pos . 0) (#:line . 1)) . #(0.0 (((#:color . 0) (#:a . 1) (#:b . 2)) . #(red 1.0 2)))) > (set! (record-vector-ref r #:pos) 1000.0) ;; SRFI-17 > r => (((#:pos . 0) (#:line . 1)) . #(1000.0 (((#:color . 0) (#:a . 1) (#:b . 2)) . #(red 1.0 2)))) > (rv-set! r #:line #:color 'blue) > r => (((#:pos . 0) (#:line . 1)) . #(1000.0 (((#:color . 0) (#:a . 1) (#:b . 2)) . #(blue 1.0 2))))