powered by
Sorts the elements in a container by reference.
sort(x, decreasing, ...)
Invisibly returns NULL.
NULL
A CppForwardList or CppList object.
Ignored.
decreasing and ... are only included for compatibility with the generic base::sort method and have no effect.
decreasing
...
base::sort
sorting, unique.
l <- cpp_forward_list(c(3, 2, 4)) l # 3 2 4 sort(l) l # 2 3 4
Run the code above in your browser using DataLab