MsListUtils<V> extension

on

Methods

addAround(Generator<V> generate) List<V>

Available on List<V>, provided by the MsListUtils extension

Returns new list with items generated around list
addBetween(Generator<V> generate) List<V>

Available on List<V>, provided by the MsListUtils extension

Returns new list with items generated between list.
firstWhereOrAdd(bool test(V element), OrAdd<V> orAdd) → V

Available on List<V>, provided by the MsListUtils extension

Returns the first element that satisfies the test if there isn't one add a new one and return it.
lastWhereOrAdd(bool test(V element), OrAdd<V> orAdd) → V

Available on List<V>, provided by the MsListUtils extension

Returns the last element that satisfies the test if there isn't one add a new one and return it.
next(int index) → V?

Available on List<V>, provided by the MsListUtils extension

Returns an element following the index, if out of bounds returns null.
previous(int index) → V?

Available on List<V>, provided by the MsListUtils extension

Returns a preceding element in the index, if out of bounds returns null.