remove

fun remove(elementIndex: Int): T

The list order is maintained.

Return

the returned element

Parameters

elementIndex

the index of the element to remove


fun remove(element: T): Boolean

The list order is maintained.

Return

true if removed, false otherwise

Parameters

element

the element to remove