Skip to main content
Module

x/rimbu/deep/index.ts>Tuple.of

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function Tuple.of
import { Tuple } from "https://deno.land/x/rimbu@1.1.0/deep/index.ts";
const { of } = Tuple;

Convenience method to type Tuple types

Examples

Example 1

const t = Tuple.of(1, 'a', true)
// type of t => Tuple<[number, string, boolean]>

Parameters

...values: T
  • the values of the tuple