vector.update_nth
update_nth v n a
replaces the
n
th element of
v
with
a