If an item in u has the same name as an item in v then replace the value in v with that in u, otherwise create a new element in v.

merge_named_vectors(v, u)

Arguments

v

named vector or list

u

named vector of list