Skip to main content
Module

x/rambda/immutable.d.ts>intersperse

Faster and smaller alternative to Ramda
Go to Latest
function intersperse
import { intersperse } from "https://deno.land/x/rambda@v7.0.1/immutable.d.ts";

It adds a separator between members of list.

Parameters

separator: T
list: readonly T[]

Returns

readonly T[]

Parameters

separator: T

Returns

(list: readonly T[]) => readonly T[]