iterable_utils library

Extensions

BasicIteratorMethods on Iterable<T>
Flatten on Iterable<Iterable<T>>
IntListConversion on List<int>
MoreFlatten on Iterable<Iterable<Iterable<T>>>
NumIteratorExtensions on Iterable<T>
TypedZip2 on Tuple2<List<T>, List<S>>
TypedZip3 on Tuple3<List<T>, List<S>, List<X>>
TypedZip4 on Tuple4<List<T>, List<S>, List<X>, List<Z>>

Functions

range({required int last, int first = 0, int step = 1}) Iterable<int>
creates a list of 2-element lists with pairs of a and be values. example: zip(1,2,3,4,5,6) -> [1,4,2,5,3,6]
shift<T>(List<T> l, T elem, [int? n]) → void
adds the elem to the end of l. if n is given the first element is popped, if the list is longer than n
weave(List<num> a, List<num> b) Float32List
combine two lists into one with alternating elemnts a1, a2, a3, b1, b2, b3 -> a1, b1, a2, b2, a3, b3 ...