@stdlib/math-iter-tools
v0.2.2
Published
Math iterator tooling.
Downloads
16
Readme
Tools
Math iterator tools.
Installation
npm install @stdlib/math-iter-tools
Usage
var ns = require( '@stdlib/math-iter-tools' );
ns
Namespace containing math iterator tools.
var o = ns;
// returns {...}
The namespace exposes the following functions:
map( iterator, fcn[, options] )
: create an iterator which invokes a unary function accepting a single numeric argument for each iterated value.map2( iter0, iter1, fcn[, options] )
: create an iterator which invokes a binary function accepting numeric arguments for each iterated value.map3( iter0, iter1, iter2, fcn[, options] )
: create an iterator which invokes a ternary function accepting numeric arguments for each iterated value.
Examples
var objectKeys = require( '@stdlib/utils-keys' );
var ns = require( '@stdlib/math-iter-tools' );
console.log( objectKeys( ns ) );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.