#skipWhile
Returns the array without the leading elements that satisfy a condition.
#skipWhile(array, @x: predicate)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
array |
path | array |
The source array. |
predicate |
lambda |
Returns true to keep skipping. |
Returns
Section titled “Returns”array
Examples
Section titled “Examples”Skip until a large value
Section titled “Skip until a large value”{ "numbers": [ 1, 2, 6, 3 ]}{ "result": "#skipWhile($.numbers, @x: @x < 5)"}{ "result": [ 6, 3 ]}