s <- cpp_multiset(4:9)
s
# 4 5 6 7 8 9
contains(s, 9:11)
# [1] TRUE FALSE FALSE
m <- cpp_unordered_map(c("hello", "world"), 3:4)
m
# ["world",4] ["hello",3]
contains(m, c("world", "there"))
# [1] TRUE FALSE
Run the code above in your browser using DataLab