[racket-dev] Out-of-range error from vector-copy

From: Neil Toronto (neil.toronto at gmail.com)
Date: Fri Jan 21 21:13:21 EST 2011

One of these things is not like the others:

 > (list-tail '(1 2 3) 3)
'()
 > (substring "123" 3)
""
 > (subbytes #"123" 3)
#""
 > (flvector-copy (flvector 1.0 2.0 3.0) 3)
#<flvector>
 > (flvector-length (flvector-copy (flvector 1.0 2.0 3.0) 3))
0
 > (vector-copy #(1 2 3) 3)
vector-copy: start index 3 out of range [0, 3] for vector: '#(1 2 3)

Neil


Posted on the dev mailing list.