Files
manolia-alpha/node_modules/fp-ts/es6/JoinSemilattice.d.ts
Robin COuret e0e50af706 init component
2026-02-16 17:28:37 +01:00

20 lines
494 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* A join-semilattice (or upper semilattice) is a semilattice whose operation is called `join`, and which can be thought
* of as a least upper bound.
*
* A `JoinSemilattice` must satisfy the following laws:
*
* - Associativity: `a (b c) <-> (a b) c`
* - Commutativity: `a b <-> b a`
* - Idempotency: `a a <-> a`
*
* @since 2.0.0
*/
/**
* @category model
* @since 2.0.0
*/
export interface JoinSemilattice<A> {
readonly join: (x: A, y: A) => A
}