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)

Arguments

list1

list

list2

list

Value

the merged list.

Examples

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))) })