View on GitHub

SpheroidScript

//Spheroid Script/spheroid.collections/List

List

A generic ordered collection of elements. Methods in this interface support only read-only access to the list; read/write access is supported through the MutableList interface.

interface List<E : Any?> : Collection

Functions

Name Summary
contains Checks if the specified element is contained in this collection.
operator fun contains(element: E): Boolean
get Returns the element at the specified index in the list.
operator fun get(index: Long): E
isEmpty Returns true if the collection is empty (contains no elements), false otherwise.
fun isEmpty(): Boolean
toString fun toString(): String

Properties

Name Summary
size Returns the size of the collection.
val size: Long

Inheritors

Name
MutableList