Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ahh/mod.ts>I.fn

Idiomatic type-safety functions.
Go to Latest
method I.fn
import { I } from "https://deno.land/x/ahh@v0.10.3/mod.ts";

Creates an Iterator where each iteration calls f.

Examples

Example 1

import { I } from "./mod.ts";

const iter = I.fn(() => 1);

console.log(iter.next()); // 1
console.log(iter.next()); // 1
// ...

Parameters

f: Iterator<T>["next"]