Why is there no way to resize SRFI-4 vectors in Scheme?
Posted
by Jay
on Stack Overflow
See other posts from Stack Overflow
or by Jay
Published on 2010-03-25T21:11:38Z
Indexed on
2010/03/25
21:13 UTC
Read the original article
Hit count: 321
I see that SRFI 4 does not mention resizing of vectors. I'm using f64vectors (for which I need fast access), and I'd like to be able to resize them quickly (similar to what realloc does in C), and not necessarily copy the whole vector.
Since I didn't find any references to a "resize-f64vector" procedure, I'd like to know why it doesn't exist (and if making a new vector and copying over is my only option).
© Stack Overflow or respective owner