range
import { range } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/iterable.ts";Create an Iterable that yields a range of numbers.
@example
import * as I from "./iterable.ts";
const range1 = I.range(5); // 0, 1, 2, 3, 4
const range2 = I.range(3, 10); // 10, 11, 12
const range3 = I.range(4, 0, 2); // 0, 2, 4, 6
const result1 = Array.from(range1); // [0, 1, 2, 3, 4]
const result2 = Array.from(range2); // [10, 11, 12]
const result3 = Array.from(range3); // [0, 2, 4, 6]
function range(
count?: number,
start?,
step?,
): Iterable<number>;