List: implemented set() to replace or update existing elements