Skip to main content
Module

x/aitertools/infinite.ts

Well-tested utility functions dealing with async iterables
Go to Latest
import * as aitertools from "https://deno.land/x/aitertools@0.3.1/infinite.ts";

Functions

Makes an infinite async iterable of evenly spaced values starting with the start number.

Makes an async iterator that yields elements from the source and saving a copy of each. When the source is exhausted, yields saved copies indefinitely.

Makes an async iterator that yields the same value over and over again. It will repeat indefinitely unless times is specified.