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

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

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

Returns a Transfoemr that inserts the given sep stream source elements between each received input element.

Parameters

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