import * as iterators from "https://deno.land/x/iterators@v0.2.0/mod.ts";
Functions
Yield accumulated values (similar to | |
f all | Return true if every item in |
f any | Return |
cacheIterator creates a wrapper around an iterator and caches its values
when | |
Chain together items from each of the iterables as a single iterator. | |
Create a chain from an iterable of iterables. | |
Generator items of | |
Generator numbers starting from 0, counting by 1. | |
Indefinitely cycle items of an iterable. | |
The sum of multiplying each item from two vectors (iterables). | |
Don't yield items until the predicate has returned false once. | |
Yield a tuple of the index and the item. | |
Generator items of | |
Generator items of | |
Check if an iterator result is an | |
Check if an iterator result is an | |
f iter | Get the iterator of a given iterable. |
f map | Apply |
Get the cartesian product of the given iterables. | |
Generator numbers from | |
Generator the same object a given number of times. | |
Take a slice of an iterable, starting from 0. | |
f sum | Get the sum of all numbers in an iterable. |
Yield items of | |
f zip | Yield items from the same index in each iterable as a tuple. Once an iterable is exhausted, the generator closes. |
Yield items from the same index in each iterable, as a tuple. The fill value is used in place of a value from an exhausted iterable. | |
Yield items from the same index in each iterable, as a tuple. Will throw if at least one iterable is done before all of them are done. |
Interfaces
CachedIterator is an iterator that stores previous generated values. |