Module

x/rambda/immutable.d.ts>insert

Faster and smaller alternative to Ramda
Latest
function insert
import { insert } from "https://dotland.deno.dev/x/rambda@9.4.1/immutable.d.ts";

Parameters

index: number

Returns

<T>(itemToInsert: T, list: readonly T[]) => readonly T[]

Parameters

index: number
itemToInsert: T

Returns

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

Parameters

index: number
itemToInsert: T
list: readonly T[]

Returns

readonly T[]