// ets_tracing: off
import type { Ordering } from "../Ordering/index.js"
import type { Bounded } from "./definition.js"
/**
* Creates Bounded[A] from equals & compare functions
*/
export function makeBounded(
compare: (x: A, y: A) => Ordering,
top: A,
bottom: A
): Bounded {
return {
compare,
bottom,
top
}
}