first

Gets the first element from an array.

Usage

<array>.first()

Returns

The first element from the array.

Examples

ExpressionResult
"a,b,c,d,e,f".split(",").first()"a"

last

Gets the last element from an array.

Usage

<array>.last()

Returns

The last element from the array.

Examples

ExpressionResult
"a,b,c,d,e,f".split(",").last()"f"

skip

Returns the array, except for the specified number of elements from the start of the array.

Usage

<array>.skip(<count>)

Parameters

NameTypeRequiredDescription
countnumberYesThe number of elements to omit from the start of the returned array.

Returns

The array without the skipped elements.

Examples

ExpressionResult
"a,b,c,d,e,f".split(",").skip(2)["c", "d", "e", "f"]

take

Returns the specific number of elements from the start of an array.

Usage

<array>.take(<count>)

Parameters

NameTypeRequiredDescription
countnumberYesThe number of elements to return.

Returns

The array with the specified number of elements.

Examples

ExpressionResult
"a,b,c,d,e,f".split(",").take(2)["a", "b"]