| erase_after | R Documentation |
Delete elements from a forward list by reference.
erase_after(x, from, to)
x |
A CppForwardList object. |
from |
Index after which to delete. |
to |
Index until including which to delete. Indices start at 1. The function does not perform bounds checks. Indices outside |
Invisibly returns NULL.
clear, empty, erase, remove..
l <- cpp_forward_list(4:9)
l
# 4 5 6 7 8 9
erase_after(l, 2L, 4L)
l
# 4 5 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.