powered by
Add elements to a forward list by reference.
insert_after(x, values, position = NULL)
Invisibly returns NULL.
NULL
A CppForwardList object.
Values to add to x.
x
Index behind which to insert elements.
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
Run the code above in your browser using DataLab