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

x/jssm/jssm_util.d.ts>seq

Fast, easy Javascript finite state machines with visualizations; enjoy a one liner FSM instead of pages. MIT; Typescripted; 100% test coverage. Implements the FSL language.
Go to Latest
function seq
import { seq } from "https://deno.land/x/jssm@5.99.0/jssm_util.d.ts";

Returns, for a non-negative integer argument n, the series [0 .. n].

import { seq } from './jssm';

seq(5);  // [0, 1, 2, 3, 4]
seq(0);  // []

Parameters

n: number

Returns

number[]