Module

x/rambda/mod.ts>intersperse

Faster and smaller alternative to Ramda
Go to Latest
function intersperse
import { intersperse } from "https://dotland.deno.dev/x/rambda@v9.2.0/mod.ts";

It adds a separator between members of list.

Parameters

separator: T
list: T[]

Parameters

separator: T

Returns

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