effect-io-ai

Package: effect
Module: Tuple

Tuple.getSecond

Return the second element from a tuple with two elements.

Example

import * as assert from "node:assert"
import { getSecond } from "effect/Tuple"

assert.deepStrictEqual(getSecond(["hello", 42]), 42)

Signature

declare const getSecond: <L, R>(self: readonly [L, R]) => R

Source

Since v2.0.0