Skip to content




API Explorer


Release notes

Martini Runtime

Martini Desktop

Martini Online

Feature requests

Bug reports


The ArrayMethods class contains a series of methods for manipulating Iterables. The methods in this class are intended for use in Gloop only, although they are still available for use in Groovy code1.

Recommended for use in Gloop only

Groovy already provides methods for performing advanced operations on arrays and collections natively.

Here's a snippet using methods in ArrayMethods:

Sample Gloop service showing how to use the `ArrayMethods` one-liners

  1. Just call the method in Groovy as you would call any static method.