[r6rs-discuss] Incorrect sample code for vector-sort!

Llewellyn Pritchard leppie at wdsl.co.za
Tue Dec 4 11:40:53 EST 2007


(define v (vector 3 5 2 1))
(vector-sort! v)     =) unspecified
v                           =) #(1 2 3 5)

According to the definition, vector-sort! should take a procedure as the 
first argument.
Is the proc argument perhaps optional?

Thanks

leppie 




More information about the r6rs-discuss mailing list