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

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