import { Tuple } from "https://deno.land/x/rimbu@1.0.3/core/main/exports.ts";
const { last } = Tuple;
Returns the last element of a Tuple.
Examples
Example 1
Example 1
const t = Tuple.of(1, 'a', true)
console.log(Tuple.last(t))
// => true
import { Tuple } from "https://deno.land/x/rimbu@1.0.3/core/main/exports.ts";
const { last } = Tuple;
Returns the last element of a Tuple.
Example 1
const t = Tuple.of(1, 'a', true)
console.log(Tuple.last(t))
// => true