import { update } from "https://deno.land/x/fae@v1.1.1/update.ts";
Returns a new array with copy of list
and value
replaced at index
.
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]