iterable_utils
library
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 ...