modarray

1.0.2 • Public • Published

modarray

operations for Array-likes within modulo space.

install

with npm, do:

npm i --save modarray

api

arr = modarray(opts)

opts.data

an Array-like to be the underlying data operated on.

opts.modulo

a Number describing the modulo to contain the array within.

arr.get(i)

retrieves element i from the array.

arr.set(i, v)

sets element i to v.

arr.index(i)

retrieves the index of the cell in the underlying data.

license

ISC

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i modarray

Weekly Downloads

0

Version

1.0.2

License

ISC

Last publish

Collaborators

  • ahdinosaur