For example, list_merge(list(a = 1, b = 2), list(b = 3, c = 4))
will be list(a = 1, b = 3, c = 4)
.
list_merge(list1, list2)
list1 | list |
---|---|
list2 | list |
the merged list.
not_run({ stopifnot(identical(list_merge(list(a = 1, b = 2), list(b = 3, c = 4)), list(a = 1, b = 3, c = 4))) stopifnot(identical(list_merge(NULL, list(a = 1)), list(a = 1))) })