export function range(to: number, from: number = 0): ReadonlyArray { return [...Array(to - from).keys()].map(i => i + from); }