UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

11 lines (10 loc) 285 B
/** * Can't reuse range() from 'remeda' because converting bigint to a number loses precision * start inclusive * end exclusive */ export const rangeBigInt = (start: bigint, end: bigint) => { const result = [] for (let i = start; i < end; i++) result.push(i) return result }