Home Manual Reference Source

src/0-core/1-monoids/KeyMonoid.js

export const NoKey = {};

export class KeyMonoid {
	zero() {
		return NoKey;
	}

	plus(a, b) {
		return b === NoKey ? a : b;
	}
}