x <- cpp_set(c("hello", "there"))
y <- cpp_set(c("hello", "world"))
merge(x, y)
x
# "hello" "there" "world"
y
# "hello"
x <- cpp_forward_list(c(1, 3, 4, 3))
y <- cpp_forward_list(c(2, 3, 5))
merge(x, y)
x
# 1 2 3 3 4 3 5
y
#
Run the code above in your browser using DataLab