bs-ajv
Version:
BucklesScript bindings to Ajv (Another JSON Validator)
48 lines (39 loc) • 609 B
JavaScript
;
function some(x) {
return /* Some */[x];
}
function is_none(x) {
if (x) {
return false;
} else {
return true;
}
}
function to_def(x) {
if (x) {
return x[0];
} else {
return undefined;
}
}
function cons(x, y) {
return /* :: */[
x,
y
];
}
function is_list_empty(x) {
if (x) {
return false;
} else {
return true;
}
}
var none = /* None */0;
exports.none = none;
exports.some = some;
exports.is_none = is_none;
exports.to_def = to_def;
exports.cons = cons;
exports.is_list_empty = is_list_empty;
/* No side effect */