Welis Garagen-Anzeige
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
lib-cov
|
||||
*.seed
|
||||
*.log
|
||||
*.csv
|
||||
*.dat
|
||||
*.out
|
||||
*.pid
|
||||
*.gz
|
||||
|
||||
pids
|
||||
logs
|
||||
results
|
||||
|
||||
npm-debug.log
|
||||
node_modules/*
|
||||
test/*
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013 Mikola Lysenko
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
# iota-array
|
||||
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
|
||||
|
||||
npm install iota-array
|
||||
|
||||
## Example
|
||||
|
||||
```javascript
|
||||
|
||||
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
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
"use strict"
|
||||
|
||||
function iota(n) {
|
||||
var result = new Array(n)
|
||||
for(var i=0; i<n; ++i) {
|
||||
result[i] = i
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
module.exports = iota
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "iota-array@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "iota-array",
|
||||
"name": "iota-array",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/Users/gerrit/Documents/node.js-Projects/tinkerforge/node_modules/ndarray"
|
||||
]
|
||||
],
|
||||
"_from": "iota-array@>=1.0.0 <2.0.0",
|
||||
"_id": "iota-array@1.0.0",
|
||||
"_inCache": true,
|
||||
"_location": "/iota-array",
|
||||
"_npmUser": {
|
||||
"name": "mikolalysenko",
|
||||
"email": "mikolalysenko@gmail.com"
|
||||
},
|
||||
"_npmVersion": "1.4.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "iota-array@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "iota-array",
|
||||
"name": "iota-array",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/ndarray"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/iota-array/-/iota-array-1.0.0.tgz",
|
||||
"_shasum": "81ef57fe5d05814cd58c2483632a99c30a0e8087",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "iota-array@^1.0.0",
|
||||
"_where": "/Users/gerrit/Documents/node.js-Projects/tinkerforge/node_modules/ndarray",
|
||||
"author": {
|
||||
"name": "Mikola Lysenko"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/mikolalysenko/iota-array/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Generates an array of consecutive integers starting at 0",
|
||||
"devDependencies": {
|
||||
"tape": "^2.12.3"
|
||||
},
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"dist": {
|
||||
"shasum": "81ef57fe5d05814cd58c2483632a99c30a0e8087",
|
||||
"tarball": "https://registry.npmjs.org/iota-array/-/iota-array-1.0.0.tgz"
|
||||
},
|
||||
"gitHead": "cce24a4f0e1a6a8d60faa4f597c600de13d46145",
|
||||
"homepage": "https://github.com/mikolalysenko/iota-array",
|
||||
"keywords": [
|
||||
"iota",
|
||||
"array",
|
||||
"sequence",
|
||||
"integer",
|
||||
"range",
|
||||
"apl",
|
||||
"c++"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "iota.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "mikolalysenko",
|
||||
"email": "mikolalysenko@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "iota-array",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/mikolalysenko/iota-array.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "tap test/*.js"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user