Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/immutable.d.ts>adjust

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

It replaces index in array list with the result of replaceFn(list[i]).

Parameters

index: number
replaceFn: (x: T) => T
list: readonly T[]

Returns

readonly T[]

Parameters

index: number
replaceFn: (x: T) => T

Returns

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