list_operators library

Classes

CloseToList<T extends num>
A class extending Matcher that matches two numerical lists within a certain precision.
EmptyIterable
Exception type indicating that an empty Iterable was encountered when a non-empty one was expected.
IndexOutOfRange
ErrorType indicating that an element of an Iterable was accessed using an invalid index.
LengthMismatch
Error type indicating that an expression involving Iterable arguments could not be calculated because of a length mismatch.

Extensions

DoubleOperators on List<double>
ExportList on List<num>
ExportListOfList on List<List<num>>
Exports objects of type List<List<num>> as a formatted String.
IntOperators on List<int>
MustHave on Iterable
NumericalMethods on Iterable<T>
NumOperators on List<num>
RecursiveUnmodifiable on List<List<T>>
Unmodifiable on List<T>

Functions

closeToList<T extends num>(List<T> expected, num delta) → Matcher
Returns a matcher which returns true if: expected[i] - delta < actual[i] <= expected[i] + delta for each index i.