Module

x/rambda/mod.ts>update

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

It returns a copy of list with updated element at index with newValue.

Parameters

index: number
newValue: T
list: T[]

Parameters

index: number
newValue: T

Returns

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