# iota-array **Repository Path**: ArkTSCentralRepository/iota-array ## Basic Information - **Project Name**: iota-array - **Description**: Generates an array of consecutive integers starting at 0 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-01 - **Last Updated**: 2026-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # iota-array 基于[iota-array](https://www.npmjs.com/package/iota-array)原库1.0.0版本进行适配 > Fills an array with sequential integers. Just like [C++'s `std::iota()`](http://www.sgi.com/tech/stl/iota.html) or the similarly named function in [APL](http://en.wikipedia.org/wiki/Iota). ## Install ```sh ohpm install iota-array ``` ## Example ```typescript import iota from 'iota-array'; console.log(iota(3)); //Prints: // // [0,1,2] // ``` ## `iota(n)` Constructs an array of length `n` of `n` sequential integers starting from 0. * `n` the length of the array to construct **Returns:** An array of n sequential integers starting at 0 # Credits (c) 2013 Mikola Lysenko. MIT License