UNPKG

bs-platform

Version:

bucklescript compiler, ocaml standard libary by bucklescript and its required runtime support

35 lines (27 loc) 505 B
'use strict'; var Caml_option = require("./caml_option.js"); function bind(x, f) { if (x == null) { return x; } else { return f(x); } } function iter(x, f) { if (x == null) { return /* () */0; } else { return f(x); } } function fromOption(x) { if (x !== undefined) { return Caml_option.valFromOption(x); } } var from_opt = fromOption; exports.bind = bind; exports.iter = iter; exports.fromOption = fromOption; exports.from_opt = from_opt; /* No side effect */