@ristostevcev/bs-callbag-basics
v1.4.0
Published
Tiny and fast reactive/iterable programming library
Downloads
3
Readme
bs-callbag-basics
Bucklescript bindings for callbag-basics
Install
yarn add @ristostevcev/bs-callbag-basics
Example
open CallbagBasics
let is_even n = n mod 2 == 0
let _ =
from_array [|1;2;3;4;5|]
|> map ((+) 3)
|> filter is_even
|> scan (+) 0
|> for_each Js.log
The API mirrors callbag-basics, see CallbagBasics.ml