Module "Sort.curry"

A collection of useful functions for sorting and comparing characters, strings, and lists.

Author: Michael Hanus

Version: February 2004


 Exported names:

Functions:
cmpChar | cmpList | cmpString | leqChar | leqCharIgnoreCase | leqLexGerman | leqList | leqString | leqStringIgnoreCase | mergeSort | quickSort


 Summary of exported functions:

quickSort  :: (a -> a -> Bool) -> [a] -> [a]  deterministic flexible
          Quicksort.
mergeSort  :: (a -> a -> Bool) -> [a] -> [a]  deterministic 
          Bottom-up mergesort.
leqList  :: (a -> a -> Bool) -> [a] -> [a] -> Bool  deterministic flexible+rigid
          Less-or-equal on lists.
cmpList  :: (a -> a -> Ordering) -> [a] -> [a] -> Ordering  deterministic flexible+rigid
          Comparison of lists.
leqChar  :: Char -> Char -> Bool  deterministic 
          Less-or-equal on characters (deprecated, use Prelude.<=).
cmpChar  :: Char -> Char -> Ordering  deterministic 
          Comparison of characters (deprecated, use Prelude.compare).
leqCharIgnoreCase  :: Char -> Char -> Bool  deterministic 
          Less-or-equal on characters ignoring case considerations.
leqString  :: String -> String -> Bool  deterministic 
          Less-or-equal on strings (deprecated, use Prelude.<=).
cmpString  :: String -> String -> Ordering  deterministic 
          Comparison of strings (deprecated, use Prelude.compare).
leqStringIgnoreCase  :: String -> String -> Bool  deterministic 
          Less-or-equal on strings ignoring case considerations.
leqLexGerman  :: String -> String -> Bool  deterministic flexible+rigid
          Lexicographical ordering on German strings.

 Imported modules:

Char
Prelude

 Exported datatypes:


 Exported functions:

quickSort :: (a -> a -> Bool) -> [a] -> [a]  deterministic flexible

Quicksort.


mergeSort :: (a -> a -> Bool) -> [a] -> [a]  deterministic 

Bottom-up mergesort.


leqList :: (a -> a -> Bool) -> [a] -> [a] -> Bool  deterministic flexible+rigid

Less-or-equal on lists.

Further infos:
  • incompletely defined

cmpList :: (a -> a -> Ordering) -> [a] -> [a] -> Ordering  deterministic flexible+rigid

Comparison of lists.

Further infos:
  • incompletely defined

leqChar :: Char -> Char -> Bool  deterministic 

Less-or-equal on characters (deprecated, use Prelude.<=).


cmpChar :: Char -> Char -> Ordering  deterministic 

Comparison of characters (deprecated, use Prelude.compare).


leqCharIgnoreCase :: Char -> Char -> Bool  deterministic 

Less-or-equal on characters ignoring case considerations.


leqString :: String -> String -> Bool  deterministic 

Less-or-equal on strings (deprecated, use Prelude.<=).


cmpString :: String -> String -> Ordering  deterministic 

Comparison of strings (deprecated, use Prelude.compare).


leqStringIgnoreCase :: String -> String -> Bool  deterministic 

Less-or-equal on strings ignoring case considerations.


leqLexGerman :: String -> String -> Bool  deterministic flexible+rigid

Lexicographical ordering on German strings. Thus, upper/lowercase are not distinguished and Umlauts are sorted as vocals.



Generated by CurryDoc (Version 0.4.1 of June 7, 2007) at Aug 28 15:28:09 2008