rescript
Version:
ReScript toolchain
36 lines (26 loc) • 420 B
JavaScript
import * as Caml_option from "./caml_option.js";
function bind(x, f) {
if (x == null) {
return x;
} else {
return f(x);
}
}
function iter(x, f) {
if (!(x == null)) {
return f(x);
}
}
function fromOption(x) {
if (x !== undefined) {
return Caml_option.valFromOption(x);
}
}
var from_opt = fromOption;
export {
bind ,
iter ,
fromOption ,
from_opt ,
}
/* No side effect */