|
||
---|---|---|
.. | ||
add | ||
divide | ||
docs/types | ||
lib | ||
mod | ||
multiply | ||
subtract | ||
package.json | ||
README.md |
Operators
Standard library math operator iterators.
Usage
var ns = require( '@stdlib/math/iter/ops' );
ns
Standard library math operator iterators.
var iterators = ns;
// returns {...}
The namespace contains the following functions for creating iterator protocol-compliant iterators:
iterAdd( iter0, ...iterator )
: create an iterator which performs element-wise addition of two or more iterators.iterDivide( iter0, ...iterator )
: create an iterator which performs element-wise division of two or more iterators.iterMod( iter0, ...iterator )
: create an iterator which performs an element-wise modulo operation of two or more iterators.iterMultiply( iter0, ...iterator )
: create an iterator which performs element-wise multiplication of two or more iterators.iterSubtract( iter0, ...iterator )
: create an iterator which performs element-wise subtraction of two or more iterators.
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/math/iter/ops' );
console.log( objectKeys( ns ) );