Scheme / Racket Vector in Vector transformation
问题 I'm having a problem transforming a vector like this: #(#(1 2 3)#(1 2 3)#(1 2 3)#(1 2 3)#(1 2 3))) Into one like this: #(#(1 1 1 1 1) #(2 2 2 2 2) #(3 3 3 3 3)) I wrote a piece of test code but the output is wrong. I went into the debugger and I think I know which line of code cause the problem. I can't seems to find a way to make it work. Any help is greatly appreciated. (define (test) (let* ((table #(#(1 2 3)#(1 2 3)#(1 2 3)#(1 2 3)#(1 2 3))) (counter 5) (size 3) (new-table (make-vector