sort {cppcontainers} | R Documentation |
Sort elements
Description
Sorts the elements in a container by reference.
Usage
sort(x, decreasing, ...)
Arguments
x |
A CppForwardList or CppList object. |
decreasing |
Ignored. |
... |
Ignored. |
Details
decreasing
and ...
are only included for compatibility with the generic base::sort
method and have no effect.
Value
Invisibly returns NULL
.
See Also
Examples
l <- cpp_forward_list(c(3, 2, 4))
l
# 3 2 4
sort(l)
l
# 2 3 4
[Package cppcontainers version 1.0.0 Index]