var SOME = Symbol('some');
export var Some = function (value) {
    var _a;
    return (_a = {},
        _a[SOME] = true,
        _a.value = value,
        _a);
};
export var None = function () { return null; };
export function or(maybe, def) {
    return maybe ? maybe.value : def();
}
export function isSome(maybe) {
    return !!maybe;
}
export function get(some) {
    return some.value;
}
