Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 7x 7x 7x 2241824x 7x 7x 368x 97x 271x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x | 'use strict';
var Belt_Option = require("bs-platform/lib/js/belt_Option.js");
var Caml_option = require("bs-platform/lib/js/caml_option.js");
var Result$Wonderjs = require("./Result.bs.js");
function unsafeGet(prim) {
return prim;
}
function get(optionData) {
Eif (optionData !== undefined) {
return Result$Wonderjs.succeed(Caml_option.valFromOption(optionData));
} else {
return Result$Wonderjs.failWith("data not exist in option data");
}
}
function fromNullable(x) {
if (x == null) {
return ;
} else {
return Caml_option.some(x);
}
}
var getExn = Belt_Option.getExn;
var getWithDefault = Belt_Option.getWithDefault;
var isSome = Belt_Option.isSome;
var map = Belt_Option.map;
exports.unsafeGet = unsafeGet;
exports.getExn = getExn;
exports.get = get;
exports.getWithDefault = getWithDefault;
exports.isSome = isSome;
exports.map = map;
exports.fromNullable = fromNullable;
/* No side effect */
|