Skip to main content
Module

x/fun/mod.ts>array._unsafeUpdateAt

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function array._unsafeUpdateAt
import { array } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { _unsafeUpdateAt } = array;

UNSAFE This operation creates a new array from ua with the value a changed at the given index. The insertion index must be tested as in bounds before calling this function. This function is intended for internal use only and thus has no api guaruntees.

Parameters

index: number
a: A
ua: ReadonlyArray<A>

Returns

ReadonlyArray<A>