ListX<T> extension

Extensions for List.

on

Properties

random → T
Returns a random element from this List.
no setter

Methods

ifEmpty(List<T> value) List<T>
Returns this List if it's not empty, otherwise returns value.
move(T element, int index) → void
Moves the element to the specified index position in this List.
split(int size) Iterable<List<T>>
Splits elements of this List into chunks of size length.