Skip to main content
Module

x/rambda/rambda.js>update

Faster and smaller alternative to Ramda
Go to Latest
function update
import { update } from "https://deno.land/x/rambda@v9.1.1/rambda.js";

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[]