vector.update_nth

update_nth v n a replaces the nth element of v with a