iota-array

WebJar for iota-array

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

iota-array
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

iota-array
WebJar for iota-array
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/scijs/iota-array

Download iota-array

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/iota-array/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>iota-array</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/iota-array/
implementation 'org.webjars.npm:iota-array:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/iota-array/
implementation ("org.webjars.npm:iota-array:1.0.0")
'org.webjars.npm:iota-array:jar:1.0.0'
<dependency org="org.webjars.npm" name="iota-array" rev="1.0.0">
  <artifact name="iota-array" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='iota-array', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "iota-array" % "1.0.0"
[org.webjars.npm/iota-array "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

iota-array

Fills an array with sequential integers. Just like C++'s std::iota() or the similarly named function in APL.

Install

npm install iota-array

Example

console.log(require("iota-array")(3))

//Prints:
//
//    [0,1,2]
//

require("iota-array")(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

org.webjars.npm

Versions

Version
1.0.0