Innovenergy_trunk/frontend/node_modules/fp-ts/lib/DistributiveLattice.js

19 lines
597 B
JavaScript
Raw Permalink Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMinMaxDistributiveLattice = void 0;
var Ord_1 = require("./Ord");
// -------------------------------------------------------------------------------------
// constructors
// -------------------------------------------------------------------------------------
/**
* @category constructors
* @since 2.0.0
*/
function getMinMaxDistributiveLattice(O) {
return {
meet: (0, Ord_1.min)(O),
join: (0, Ord_1.max)(O)
};
}
exports.getMinMaxDistributiveLattice = getMinMaxDistributiveLattice;