cmpLexicographically

Compare a and b lexicographically by applying each fun to them. For unary functions compares fun(a) < fun(b).

int
cmpLexicographically
(
T
fun...
)
(
T a
,
T b
)

Meta