Skip to the content
Documentation

reverse

No ratings yet

Summary

Returns a reversed version of the input array.

Usage

input|reverse()

Returns

A reversed version of the input array.

Description

This operator returns a reversed version (elements in reverse order) of the input array.

Examples

Example 1
{array( 1, 2, 3, 4 )|reverse}

The following array will be returned: ( 4, 3, 2, 1 ).

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.