print {cppcontainers} | R Documentation |
Print container data
Description
Print the data in a container.
Usage
print(x, ...)
Arguments
x |
A |
... |
An ellipsis for compatibility with the generic method. Accepts the parameters |
Details
print
has no side effects. Unlike to_r, it does not remove elements from stacks or queues.
Value
Invisibly returns NULL
.
See Also
Examples
s <- cpp_set(4:9)
print(s)
# 4 5 6 7 8 9
print(s, n = 3)
# 4 5 6
print(s, n = -3)
# 9 8 7
print(s, from = 5, to = 7)
# 5 6 7
v <- cpp_vector(4:9)
print(v, n = 2)
# 4 5
print(v, from = 2, to = 3)
# 5 6
print(v, from = 3)
# 6 7 8 9
[Package cppcontainers version 1.0.0 Index]