import * as ahh from "https://deno.land/x/ahh@v0.12.0/src/iterator.ts";
Contains an idiomatic Iterator
type and related functions.
Unlike the Iterator
type built into JavaScript, this Iterator
is lazy. This is useful as it means items are only evaluated once you call
Iterator.next
| next on the Iterator
, not up-front.
Since Iterator
s use the iteration protocols, we still have
access to features built into the language, such as:
for..of
loops
Classes
See | |
See | |
See | |
See | |
See | |
See | |
An interface type that can be iterated over. | |
c Map | See |
c Once | See |
See | |
See | |
c Skip | See |
See | |
See | |
c Take | See |
See | |
c Zip | See |