and easy to remember interface for addition, multiplication, concatenation, and-ing, or-ing, as well as several two parameter lambdas for non-associative operators, and curried
versions of the binary operators for quick creation of the functions that you end up writing for
filter all the time.
Use it with qualified imports with the yet unfinished module
import syntax or attach it to the short variable of choice. For selling points, here's how it will look with ES7 modules.
import gt plus pow eq prepend from 'operators'132654filtergt4;// [ 6, 5 ]1234mapplus1; // [ 2, 3, 4, 5 ]1234mappow2; // [ 1, 4, 9, 16 ]1232filtereq2; // [ 2, 2 ]12 34 mapprepend0; // [ [ 0, 1, 2 ], [ 0, 3, 4 ] ]
Read the API.
This modules makes is a core part the larger utility library interlude.
MIT-Licensed. See LICENSE file for details.