function Tuple.getIndeximport { Tuple } from "https://deno.land/x/rimbu@0.12.3/core/mod.ts"; const { getIndex } = Tuple; getIndex<T extends Tuple.Source, K extends keyof T = keyof T>(tuple: T, index: K): T[K]Returns the item at the given index in the givn tuple. ExamplesExample 1 const t = Tuple.of(1, 'a', true) console.log(Tuple.getIndex(t, 1)) // => 'a' Type ParametersT extends Tuple.SourceoptionalK extends keyof T = keyof TParameterstuple: T the tuple to get the item from index: K the index in of the tuple element ReturnsT[K]