import { Tuple } from "https://deno.land/x/rimbu@0.13.1/core/main/index.ts";
const { getIndex } = Tuple;
Returns the item at the given index
in the givn tuple
.
Examples
Example 1
Example 1
const t = Tuple.of(1, 'a', true)
console.log(Tuple.getIndex(t, 1))
// => 'a'
Type Parameters
T extends Tuple.Source