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

x/rimbu/core/mod.ts>AsyncTransformer.intersperse

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function AsyncTransformer.intersperse
import { AsyncTransformer } from "https://deno.land/x/rimbu@1.2.0/core/mod.ts";
const { intersperse } = AsyncTransformer;

Returns an AsyncTransformer that inserts the given sep stream source elements between each received input element.

Parameters

sep: AsyncStreamSource<T>
  • the async StreamSource to insert between each received element

Returns

AsyncTransformer<T>