Skip to main content
Module

x/rimbu/mod.ts>Tuple

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace Tuple
import { Tuple } from "https://deno.land/x/rimbu@0.14.0/mod.ts";

Functions

Returns the given tuple with the given values appended.

Returns a Tuple containing the elements of given tuple1 followed by the elements of given tuple2.

Returns the first element of a Tuple.

Returns the item at the given index in the givn tuple.

Returns a Tuple containing all but the last element of the given tuple.

Returns the last element of a Tuple.

Convenience method to type Tuple types

Returns the second element of a Tuple.

Returns a Tuple containing all but the first element of the given tuple.

Returns a copy of the given tuple where the element at given index is updated with the given updater.

Type Aliases

Returns the indices/keys that are in a tuple.

A non-empty readonly array that can serve as a source for a Tuple.

A readonly array that can serve as a source for a Tuple.

type alias Tuple
import { type Tuple } from "https://deno.land/x/rimbu@0.14.0/mod.ts";

A readonly array of fixed length and types.

definition: Readonly<T>