LIST_SORT signature
signature LIST_SORT
structure ListMergeSort : LIST_SORT
The LIST_SORT signature specifies an interface for the applicative sorting of lists.
val sort : (('a * 'a) -> bool) -> 'a list -> 'a list
val uniqueSort : (('a * 'a) -> order) -> 'a list -> 'a list
val sorted : (('a * 'a) -> bool) -> 'a list -> bool
sort f l
f(x,y) evaluates to true, then x will appear after y in the resulting list.
uniqueSort f l
sorted f l
x,y in l, f(x,y) evaluates to false.
Last Modified June 11, 1998
Comments to John Reppy
Copyright © 1998 Bell Labs, Lucent Technologies