export const max = (i: Readonly<Interval>, x: number, eps = DEFAULT_EPS) =>
    i.lopen ? (x <= i.l ? i.l + eps : x) : x < i.l ? i.l : x;