You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

There also exist algebraic operators (+,  -) to concatenate or subtract lists.

<List>[Number x]

 Returns the object on position x of the given list, e.g. 'timestamps[0]'.

IndexOf(List l, Object o)

Returns the index of the given object in the given list.

IsEmpty(List l)

Return true if the given list is empty else false.

Size(List l)

Return the size of the list.

elementAt(List l, int pos)

Return the element of the list l at pos. If the list is a variable or a constant list[pos] can be used.

filter(List l, String predicate)

Executes the predicate on each element in the list and returns a filtered list

foreach(List l, String expression)

Perform the given expression on each element in the list and returns a list with the mapped elements.

 

  • No labels