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.

Enums

Coordinates

Extensions

Comparison on List<T>
CylindricalCoordinateList on List<List<num>>
Converts a list containing Cartesian coordinates to a list containing Cylindrical coordinates.
CylindricalCoordinates on List<num>
DoubleOperators on List<double>
EuclideanMetric on List<num>
ExportList on List<num>
Exports objects of type List<num> as a formatted String.
ExportListOfList on List<List<num>>
Exports objects of type List<List<num>> as a formatted String.
IntOperators on List<int>
MustHave on Iterable
NumIterableMethods on Iterable<T>
NumOperators on List<num>
RecursiveUnmodifiable on List<List<T>>
SphericalCoordinateList on List<List<num>>
Converts a list containing Cartesian coordinates to a list containing Polar Spherical coordinates.
SphericalCoordinates on List<num>
Transforms a list containing Cartesian coordinates [x, y, z] to Polar Spherical coordinates [r, theta, phi].
Unmodifiable on List<T>

Functions

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