Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fae/adjust.ts>adjust

A functional module for Deno inspired from Ramda.
Latest
variable adjust
import { adjust } from "https://deno.land/x/fae@v1.1.1/adjust.ts";

Applies a given function fn at given index of list, returning a new copy of list with element at index replaced with return value of fn.

 Fae.adjust(2, Fae.add(1), [0, 1, 2, 3]) // [0, 1, 3, 3]
 Fae.adjust(-3, Fae.add(1), [0, 1, 2, 3]) // [0, 2, 2, 3]

type

Adjust