IList
interface in package klyn.collections

    public interface IList<T>:

IList

Read-only ordered collection of elements.

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | size `size as ULong` | Number of elements in the list.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | count `count(item as T) as ULong` | Counts occurrences of the given element in the list.
public | indexOf `indexOf(item as T, start as Int = 0) as Int` | Returns the first index of the given element.
public | join `join(separator as String) as String` | Joins elements into a single string using the separator.
public | lastIndexOf `lastIndexOf(item as T, start as Int = -1) as Int` | Returns the last index of the given element.

Operators

Modifier and Type | Member | Description
--- | --- | ---
public | operator in(item as T) as Boolean | Returns true if the list contains the given element.
public | operator[](index as Int) as T | Returns the element at the given index.