Module

x/rambda/rambda.js>adjust

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

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

Parameters

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

Parameters

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

Returns

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