extract_right
Summary
Returns a portion of the end of the input array.
Usage
input|extract_right( length )
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| length | integer | The number of elements that should be extracted. | Yes. |
Returns
An array containing the extracted elements.
Description
This operator extracts a portion from the end of the input array. The "length" parameter must be used to specify the number of elements that should be extracted.
Examples
Example 1
{array( 1, 2, 3, 4, 5, 6, 7 )|extract_right( 3 )}The following array will be returned: ( 5, 6, 7 ).
Contributors
- Balazs Halasy Updated
Comments
Add a comment