UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

21 lines (17 loc) 412 B
import {Iteration} from './Iteration' import {Format} from './Format' /** Get the position of `I` (**number**) @param I to query @param IMap to operate with another set of numbers @returns `number` @example ```ts import {I} from 'ts-toolbelt' type i = I.IterationOf<'20'> type test0 = I.Pos<i> // 20 type test1 = I.Pos<I.Next<i>> // 21 ``` */ export type Pos<I extends Iteration> = Format<I, 'n'>