import { Tuple } from "https://deno.land/x/rimbu@1.0.3/core/main/exports.ts";
const { of } = Tuple;
Convenience method to type Tuple types
Examples
Example 1
Example 1
const t = Tuple.of(1, 'a', true)
// type of t => Tuple<[number, string, boolean]>
Type Parameters
T extends Tuple.NonEmptySource
Parameters
...values: T
- the values of the tuple