版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BoundedDistributiveLattice.js 778 B

123456789101112131415161718192021
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.getMinMaxBoundedDistributiveLattice = void 0;
  4. var DistributiveLattice_1 = require("./DistributiveLattice");
  5. // -------------------------------------------------------------------------------------
  6. // constructors
  7. // -------------------------------------------------------------------------------------
  8. /**
  9. * @category constructors
  10. * @since 2.0.0
  11. */
  12. function getMinMaxBoundedDistributiveLattice(O) {
  13. var L = (0, DistributiveLattice_1.getMinMaxDistributiveLattice)(O);
  14. return function (min, max) { return ({
  15. join: L.join,
  16. meet: L.meet,
  17. zero: min,
  18. one: max
  19. }); };
  20. }
  21. exports.getMinMaxBoundedDistributiveLattice = getMinMaxBoundedDistributiveLattice;