"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.combine = exports.invert = exports.sign = void 0;
/**
 * `number` => `Ordering`
 */
function sign(n) {
    if (n < 0) {
        return -1;
    }
    if (n > 0) {
        return 1;
    }
    return 0;
}
exports.sign = sign;
/**
 * Invert Ordering
 */
function invert(O) {
    switch (O) {
        case -1:
            return 1;
        case 1:
            return -1;
        default:
            return 0;
    }
}
exports.invert = invert;
function combine(x, y) {
    return x !== 0 ? x : y;
}
exports.combine = combine;
//# sourceMappingURL=operations.js.map