8000 GitHub - pabloos/transducerJS: trandsducerJS is a transducer implementation in js · GitHub
[go: up one dir, main page]

Skip to content

About

trandsducerJS is a transducer implementation in js

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

🔋 🔋 transducerJS

transducerJS is a transducer implementation in js based on Carlos Caballero's one

Installation

You can get it with npm:

npm i --save transducerJS

Usage

const { transducer, filter, map } = require('transducerjs')

const numbers = [1, 2, 3]
c
686F
onst result = transducer(map(x => x * 2), filter(x => x > 2))(numbers)

console.log(result) // [ 4, 6 ]

Contributing

First, clone this repo:

git clone https://github.com/pabloos/transducerJS.git

Add changes and keep the tests suites passed:

npm test

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Acknowledgment

Thanks Carlos Caballero, who make the first implementation

License

MIT

About

trandsducerJS is a transducer implementation in js

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0