repeat
Summary
Returns a repeated version of the input array.Usage
input|repeat( times )
Parameters
Name | Type | Description | Required |
---|---|---|---|
times | integer | The number of times the array should be repeated. | Yes. |
Returns
An array containing the elements of the input array repeated n times.Description
This operator returns a repeated version of the input array. The "times" parameter must be used to define the number of times the array should be repeated.
Examples
Example 1
{array( 1, 2, 3, 4 )|repeat( 3 )}
The following array will be returned: ( 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4 ).
Balazs Halasy (05/02/2004 9:34 am)
Balazs Halasy (04/05/2005 1:41 pm)
Comments
There are no comments.