I am wondering how to implement mutable versions of cadr, caddr and the like in Racket without defining each separately? i.e. not
(define (mcadr exp) (mcar (mcdr exp)))
For mutable lists or pairs, it seems that Racket only supports mcar and mcdr, but not "extended" versions. Do I need to know and be good at macros to do this?
source share