Skip to main content
Module

x/rimbu/typical/mod.ts>StrNum.Mult

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias StrNum.Mult
import { type StrNum } from "https://deno.land/x/rimbu@0.12.3/typical/mod.ts";
const { Mult } = StrNum;

Type Parameters

N1 extends string
N2 extends string
definition: N2 extends Str.Append<infer N2Start, Digit> ? N2Start extends "" ? MultDigit<N1, Digit & N2> : N2 extends Str.Append<N2Start, infer N2Last> ? Add<MultDigit<N1, Digit & N2Last>, Str.Append<Mult<N1, N2Start>, "0">> : never : never