Common Lisp Package: CMP

README:

FUNCTION

Public

CMP/= (A &REST MORE)

Returns T if no two of its arguments are equal according to CMP; NIL otherwise.

CMP< (A &REST MORE)

Returns T if its arguments are in strictly increasing order according to CMP; NIL otherwise.

CMP<= (A &REST MORE)

Returns T if its arguments are in strictly non-decreasing order according to CMP; NIL otherwise.

CMP= (A &REST MORE)

Returns T if all of its arguments are equal according to CMP; NIL otherwise.

CMP> (A &REST MORE)

Returns T if its arguments are in strictly decreasing order according to CMP; NIL otherwise.

CMP>= (A &REST MORE)

Returns T if its arguments are in strictly non-increasing order according to CMP; NIL otherwise.

Private

Undocumented

TWO-ARG-CMP/= (A B)

TWO-ARG-CMP< (A B)

TWO-ARG-CMP<= (A B)

TWO-ARG-CMP= (A B)

TWO-ARG-CMP> (A B)

TWO-ARG-CMP>= (A B)

GENERIC-FUNCTION

Public

CMP (A B)

Compare A and B; return -1 if A<B, 0 if A=B, +1 if A>B. May return NIL if A and B are not equal and have no meaningful order relation.

HASH (THING)

Hash such that (cmp= A B) => (= (hash A) (hash B))