chickadee » srfi-214 » flexvector-set!

flexvector-set! fv i xprocedure

Assigns the value of x to the location i in fv. It is an error if i is outside the range [0, (flexvector-length fv)]. If i is equal to (flexvector-length fv), x is appended after the last element in fv; this is equivalent to flexvector-add-back!. Returns the previous value at location i in fv, or an unspecified value if i is equal to (flexvector-length fv). flexvector-set! has the same computational complexity as vector-set!. In most Schemes, it will be O(1).