Mutate vector in scheme by appending vectors
I don't know the underlying implementation of vectors in Scheme, hence not
sure how to write a vector-append! such that it mutates in the input
vector
Prototype:
(define (vector-append! vect . vects)
; definition here
)
P.S. Preferred to use vector over list since vector-ref is a constant time
operation [src]
No comments:
Post a Comment