ranges ¶
Functions:
-
interleave_arr–Interleave two arrays of variable length.
interleave_arr ¶
Interleave two arrays of variable length.
Parameters:
-
(arr0¶Iterable[T0]) –First array to be interleaved.
-
(arr1¶Iterable[T1]) –Second array to be interleaved.
-
(n¶int, default:2) –The number of elements from arr0 to include in the interleaved sequence before including an element from arr1.
Yields: Elements from either arr0 or arr01.
Source code in jetpytools/utils/ranges.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |