| insert_after | R Documentation |
Add elements to a forward list by reference.
insert_after(x, values, position = NULL)
x |
A CppForwardList object. |
values |
Values to add to |
position |
Index behind which to insert elements. |
Invisibly returns NULL.
emplace, emplace_after, insert, insert_or_assign.
v <- cpp_forward_list(4:6)
v
# 4 5 6
insert_after(v, 10:11, 2)
v
# 4 5 10 11 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.