Skip to main content
Module

x/rimbu/typical/strnum.ts>DigitToTup

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Latest
type alias DigitToTup
import { type DigitToTup } from "https://deno.land/x/rimbu@1.2.1/typical/strnum.ts";

A table from StringDigits to an array that repeats the elements of given array T digit amount of times. 'deca' is used to represent an exponent of 10

Type Parameters

optional
T extends unknown[] = [unknown]
definition: { 0: []; 1: T; 2: [...T, ...T]; 3: [...T, ...T, ...T]; 4:
[
...T,
...T,
...T,
...T,
]
; 5:
[
...T,
...T,
...T,
...T,
...T,
]
; 6:
[
...T,
...T,
...T,
...T,
...T,
...T,
]
; 7:
[
...T,
...T,
...T,
...T,
...T,
...T,
...T,
]
; 8:
[
...T,
...T,
...T,
...T,
...T,
...T,
...T,
...T,
]
; 9:
[
...T,
...T,
...T,
...T,
...T,
...T,
...T,
...T,
...T,
]
; 10:
[
...T,
...T,
...T,
...T,
...T,
...T,
...T,
...T,
...T,
...T,
]
; }