aboutsummaryrefslogtreecommitdiffstats
path: root/lib/concepts/Ordering.ml
blob: 8952b41655096bd7652e488448fdc72d365fafbd (plain) (blame)
1
2
3
type ordering = Equal | Smaller | Greater

let of_int x = if x < 0 then Smaller else if x > 0 then Greater else Equal