# NOT RUN {
# Deque
d = deque(1, 2, 3)
ref_pop(d)
ref_popleft(d)
# }
# NOT RUN {
ref_pop(deque()) # pop at empty Deque
# }
# NOT RUN {
# Container
co = container(a = 1, b = 1:3, d = "foo")
ref_pop(co, "b")
ref_pop(co, 1)
# }
# NOT RUN {
ref_pop(co, "x") # index 'x' not found
# }
# NOT RUN {
# dict.table
dit = dict.table(a = 1:3, b = 4:6)
ref_pop(dit, "a")
ref_pop(dit, 1)
# }
# NOT RUN {
ref_pop(dit, "x") # index 'x' not found
# }
Run the code above in your browser using DataLab