Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/staltz/callbag-iterate

👜 Callbag puller sink that iterates over a pullable source
https://github.com/staltz/callbag-iterate

Last synced: 16 days ago
JSON representation

👜 Callbag puller sink that iterates over a pullable source

Awesome Lists containing this project

README

        

# callbag-iterate

**DEPRECATED IN FAVOR OF [callbag-for-each](https://github.com/staltz/callbag-for-each)**

A callbag puller sink which iterates through data from a pullable source. Think of it as a forEach loop for pullables.

`npm install callbag-iterate`

## example

```js
const fromIter = require('callbag-from-iter');
const iterate = require('callbag-iterate');

const source = fromIter([10,20,30,40])

iterate(x => console.log(x))(source); // 10
// 20
// 30
// 40
```