import { Tuple } from "https://deno.land/x/rimbu@0.13.5/core/mod.ts";
const { updateAt } = Tuple;
Returns a copy of the given tuple
where the element at given index
is updated with the
given updater
.
Examples
Example 1
Example 1
const t = Tuple.of(1, 'a', true)
console.log(Tuple.updateAt(t, 1, 'b'))
// => [1, 'b', true]
Type Parameters
T extends Tuple.Source