DuroDBMS API  1.2
Built-in array operators

OPERATOR array

OPERATOR array(ANY, ...) RETURNS ARRAY;

Description

The array selector. Returns an array containing the arguments passed to array, in order.


OPERATOR length

OPERATOR length (arr ARRAY) RETURNS integer;

Description

The array length operator.

Return value

The length of the array arr.


OPERATOR index_of

OPERATOR index_of (arr ARRAY, data ANY) RETURNS integer;

Description

Returns the index of the first occurrence of data in the array arr.

Return value

The index, or -1 if data does not appear in the array.