Overview

Arrays

static Arrays :: {}

The Arrays object contains various methods to help utilize the default Array data-type in Ruota.

Methods

Return Params Description
Array sort(Array a, Lambda comp)

Sorts an array based on a given comparator function using the quicksort algorithm.

Number contains(Array a, Any v)

Returns 1 if the array contains the given value, returns 0 otherwise.

Array remove(Array a, Number pos)

Removes the value from an array by the given position.

Array removeValue(Array a, Any value)

Removes the given values from an array.