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 291x 445x 396x 396x 97x 299x 357x 22x 7x 7x 7x 7x 7x 7x | 'use strict';
var Caml_option = require("bs-platform/lib/js/caml_option.js");
var Js_null_undefined = require("bs-platform/lib/js/js_null_undefined.js");
var NullUtils$Wonderjs = require("../utils/NullUtils.bs.js");
function createEmpty(hintSizeOpt, param) {
return [];
}
function copy(prim) {
return prim.slice();
}
function unsafeGet(map, key) {
return map[key];
}
function get(map, key) {
var value = map[key];
if (NullUtils$Wonderjs.isEmpty(value)) {
return ;
} else {
return Caml_option.some(value);
}
}
function getNullable(map, key) {
return Js_null_undefined.fromOption(get(map, key));
}
function has(map, key) {
return !NullUtils$Wonderjs.isEmpty(map[key]);
}
exports.createEmpty = createEmpty;
exports.copy = copy;
exports.unsafeGet = unsafeGet;
exports.get = get;
exports.getNullable = getNullable;
exports.has = has;
/* No side effect */
|