reverse {cppcontainers}R Documentation

Reverse element order

Description

Reverses the order of the elements in the container by reference.

Usage

reverse(x)

Arguments

x

A CppForwardList or CppList object.

Value

Invisibly returns NULL.

Examples

l <- cpp_forward_list(4:9)
l
# 4 5 6 7 8 9

reverse(l)
l
# 


[Package cppcontainers version 1.0.0 Index]