@ambientlight/bs-rx
Advanced tools
Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "@ambientlight/bs-rx", | ||
"namespace": false, | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"sources": [ | ||
@@ -6,0 +6,0 @@ { |
{ | ||
"name": "@ambientlight/bs-rx", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "bucklescript bindings for RxJs v7", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -30,2 +30,13 @@ [![STATUS](https://github.com/ambientlight/bs-rx/workflows/Deploy%20Docs/badge.svg)](https://github.com/ambientlight/bs-rx/actions) | ||
You may also utilize **-n**(no idx) suffixed versions of those operators that errase **idx** argument: | ||
```reason | ||
Rx.range(~start=1, ~count=200, ()) | ||
|> Rx.Operators.filtern(x => x mod 2 == 1) | ||
|> Rx.Operators.mapn(x => x + x) | ||
|> Rx.Observable.subscribe( | ||
~next=x=>Js.log(x) | ||
); | ||
``` | ||
## Examples | ||
@@ -32,0 +43,0 @@ |
Sorry, the diff of this file is not supported yet
256445
158