BasicsListMethods<T extends num> extension

ads list methods that should have (mostly) been included in the stdlib from the beginning for list of with elemnts of type num, int, or double

on

Properties

indexOfMax int

Available on List<T>, provided by the BasicsListMethods extension

no setter
indexOfMin int

Available on List<T>, provided by the BasicsListMethods extension

no setter
smooth Iterable<double>

Available on List<T>, provided by the BasicsListMethods extension

weighted average of this
no setter

Methods

sumBefore(int index) → T

Available on List<T>, provided by the BasicsListMethods extension

takesmooth([int n = 4]) double

Available on List<T>, provided by the BasicsListMethods extension