| push_front | R Documentation |
Add an element to the front of a container by reference.
push_front(x, value)
x |
A CppDeque, CppForwardList, or CppList object. |
value |
A value to add to |
Invisibly returns NULL.
emplace_front, front, insert, pop_front, push_back.
d <- cpp_deque(4:6)
d
# 4 5 6
push_front(d, 14L)
d
# 14 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.