Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/core/main/exports.ts>Tuple.second

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

Returns the second element of a Tuple.

Examples

Example 1

const t = Tuple.of(1, 'a', true)
console.log(Tuple.second(t))
// => 'a'

Parameters

tuple: T
  • the source tuple