import { Tuple } from "https://deno.land/x/rimbu@1.0.3/core/main/exports.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