@prelude/array
Version:
Array module.
12 lines • 324 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/** @returns array with 0 to n-1 indices. */
const indices = (n) => {
const array = new Array(n);
for (let i = 0; i < n; i++) {
array[i] = i;
}
return array;
};
exports.default = indices;
//# sourceMappingURL=indices.js.map