function successorsimport { successors } from "https://deno.land/x/ahh@v0.12.1/src/iterator.ts"; successors<T>(init: Option<T>, fn: (_: T) => Option<T>): Successors<T>Creates an Iterator where each successive item is computed from the previous one. ExamplesExample 1 import { default as I } from "./iterator.ts"; const iter = I.repeat("hello"); console.log(iter.next()); Type ParametersTParametersinit: Option<T>fn: (_: T) => Option<T>ReturnsSuccessors<T>