Module

x/rambda/index.d.ts>aperture

Faster and smaller alternative to Ramda
Latest
function aperture
import { aperture } from "https://dotland.deno.dev/x/rambda@9.4.1/index.d.ts";

It returns a new list, composed of consecutive n-tuples from a list.

Type Parameters

N extends number
T

Parameters

n: N
list: T[]

Returns

Array<Tuple<T, N>> | []

Type Parameters

N extends number

Returns

<T>(list: T[]) => Array<Tuple<T, N>> | []