3
37%
MIT
Tiny and fast reactive/iterable programming library

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