import * as ahh from "https://deno.land/x/ahh@v0.12.4/src/iterator.ts";
Contains an idiomatic Iterator
type and related functions.
Unlike the Iterator
built into JavaScript, this Iterator
is
lazy. This is useful since items are only evaluated once you call
Iterator.next
on the Iterator
, not up-front.
Since Iterator
s implement the iteration protocols, we still
have access to features built into the language, such as:
Classes
See | |
See | |
See | |
See | |
See | |
See | |
An interface for types 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 |
Functions
Creates an | |
f fn | |
f iter | Creates an |
f once | Creates an |
Creates an | |
Creates an |