HeartListNum<N extends num> extension

Extension methods for List of numbers

on

Methods

dec([N? decrementAmount]) List<N>

Available on List<N>, provided by the HeartListNum extension

Decrement all values by decrementAmount.
div(N divideBy) List<N>

Available on List<N>, provided by the HeartListNum extension

Divide all values by divideBy.
inc([N? incrementAmount]) List<N>

Available on List<N>, provided by the HeartListNum extension

Increment all values by incrementAmount.
insertInOrder(Iterable<N> numbersToInsert) List<N>

Available on List<N>, provided by the HeartListNum extension

Inserts each element in numbersToInsert before the first element that is >=
mult(N multiplyBy) List<N>

Available on List<N>, provided by the HeartListNum extension

Multiply all values by multiplyBy
toDoubles() List<double>

Available on List<N>, provided by the HeartListNum extension

Convert elements to doubles.
toInts() List<int>

Available on List<N>, provided by the HeartListNum extension

Convert elements to truncated integers.
toRounded() List<int>

Available on List<N>, provided by the HeartListNum extension

Convert elements to rounded integers.