import { Tuple } from "https://deno.land/x/rimbu@0.13.5/deep/tuple.ts";
const { first } = Tuple;
Returns the first element of a Tuple.
Examples
Example 1
Example 1
const t = Tuple.of(1, 'a', true)
console.log(Tuple.first(t))
// => 1
Type Parameters
T extends Tuple.Source
Parameters
tuple: T
- the source tuple