import { Tuple } from "https://deno.land/x/rimbu@0.13.1/core/mod.ts";
const { tail } = Tuple;
Returns a Tuple containing all but the first element of the given tuple
.
Examples
Example 1
Example 1
const t = Tuple.of(1, 'a', true)
console.log(Tuple.tail(t))
// => ['a', true]
Parameters
tuple: readonly [unknown, ...T]
- the source tuple