@rescript/std
Version:
The motiviation of this repo is that when ReScript users want to share their library with JS users, the JS users don't need have ReScript toolchain installed, this makes sharing code with JS users easier (more details on that topic can be found in our [Ex
45 lines (33 loc) • 741 B
JavaScript
import * as Curry from "./curry.js";
import * as CamlinternalLazy from "./camlinternalLazy.js";
function from_fun(f) {
return {
LAZY_DONE: false,
VAL: (function () {
return Curry._1(f, undefined);
})
};
}
function from_val(v) {
return {
LAZY_DONE: true,
VAL: v
};
}
var Undefined = CamlinternalLazy.Undefined;
var force_val = CamlinternalLazy.force_val;
var is_val = CamlinternalLazy.is_val;
var lazy_from_fun = from_fun;
var lazy_from_val = from_val;
var lazy_is_val = CamlinternalLazy.is_val;
export {
Undefined ,
force_val ,
from_fun ,
from_val ,
is_val ,
lazy_from_fun ,
lazy_from_val ,
lazy_is_val ,
}
/* No side effect */