Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/iter/lib/transformers.ts>fuse

A bunch of utilities for working with iterables, many inspired by the native array methods.
Latest
function fuse
import { fuse } from "https://deno.land/x/iter@v3.2.3/lib/transformers.ts";

Strips and fuses an iterable, such that any results including and after a result with { done: true } are ignored. In the current implementation of most functions, both of these behaviours already happen, so generally this is only necessary when it is the only operation being applied.

Parameters

iter: Iterable<T>
  • The iterable to be fused.

Returns

A stripped and fused iterable.