UNPKG

wonka

Version:

A fast push & pull stream library for Reason, loosely following the [callbag spec](https://github.com/callbag/callbag)

25 lines (19 loc) 622 B
import * as Block from "bs-platform/lib/es6/block.js"; function fromValue(x) { return (function (sink) { var ended = /* record */[/* contents */false]; return sink(/* Start */Block.__(0, [(function (signal) { if (signal || ended[0]) { return /* () */0; } else { ended[0] = true; sink(/* Push */Block.__(1, [x])); return sink(/* End */0); } })])); }); } export { fromValue , } /* No side effect */