Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/itertools/mod.ts>count

🦕 A TypeScript port of Python's itertools and more-itertools for Deno
Go to Latest
function count
import { count } from "https://deno.land/x/itertools@v1.1.1/mod.ts";

Returns an iterator that counts up values starting with number start (default 0), incrementing by step. To decrement, use a negative step number.

Parameters

optional
start = [UNSUPPORTED]
optional
step = [UNSUPPORTED]

Returns

Iterable<number>