This function performs a union of two lists and updates the elements of the first one if are found in the other one.
.updateList(list1, list2)
list1 | a list to be updated |
---|---|
list2 | a list to update with |
an updated list
Both elements have to be lists. If some elements are not named, they are preserved but the order might be lost.
#> $a #> [1] 1 #> #> $b #> [1] 1 #> #> $c #> [1] 3 #>