BasicIteratorMethods<T> extension
- on
-
- Iterable<
T>
- Iterable<
Properties
-
firstHalf
→ Iterable<
T> -
Available on Iterable<
T> , provided by the BasicIteratorMethods extensionno setter -
lag
→ Iterable<
List< T> > -
Available on Iterable<
T> , provided by the BasicIteratorMethods extensionno setter -
secondHalf
→ Iterable<
T> -
Available on Iterable<
T> , provided by the BasicIteratorMethods extensionno setter
Methods
-
chunks(
int n) → Iterable< Iterable< T> > -
Available on Iterable<
split iterable into chunks of size nT> , provided by the BasicIteratorMethods extension -
decimate(
int n) → Iterable< T> -
Available on Iterable<
keep n equaly spaced elements of an arrayT> , provided by the BasicIteratorMethods extension -
findIndices(
bool test(T element)) → Iterable< int> -
Available on Iterable<
return the indices, that satisfy the conditionT> , provided by the BasicIteratorMethods extension -
nchunks(
int n) → Iterable< Iterable< T> > -
Available on Iterable<
split iterable into n chuncks of as equal size and fille the last chunk with the remaining elementsT> , provided by the BasicIteratorMethods extension -
rotate(
[int n = 1]) → Iterable< T> -
Available on Iterable<
T> , provided by the BasicIteratorMethods extension -
takeEveryNotNth(
int n) → Iterable< T> -
Available on Iterable<
keep every other element than the nthT> , provided by the BasicIteratorMethods extension1,2,3,4,5,6,7,8,9
.takeEveryNth(3) ->2,3,5,6,8,9
-
takeEveryNth(
int n) → Iterable< T> -
Available on Iterable<
keep every nth element of an iterable starting with the firstT> , provided by the BasicIteratorMethods extension1,2,3,4,5,6,7,8,9
.takeEveryNth(3) ->1,4,7