Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

ahdinosaur/modarray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

operations for Array-likes within modulo space.

Resources

Stars

Watchers

Forks

Packages

No packages published