package mopsa
Module Core.Compare
Lift comparison to composed data-structure (pairs, lists, etc.).
compose cl applies a list of comparison functions cl in sequence and stops when encountering the first non-zero result.
list p lifts the 'a compare function p to 'a list
pair p lifts the 'a compare function p, 'b compare function q to 'a * 'b
val triple :
('a -> 'a -> int) ->
('b -> 'b -> int) ->
('c -> 'c -> int) ->
('a * 'b * 'c) ->
('a * 'b * 'c) ->
inttriple p lifts the 'a compare function p, 'b compare function q, 'c compare function r to 'a * 'b * 'c