GENERIC TYPE ElementType IS PRIVATE; -- any nonlimited type will do TYPE IndexType IS (<>); -- any discrete type for index TYPE ListType IS ARRAY (IndexType RANGE <>) OF ElementType; WITH FUNCTION Compare (Left, Right : ElementType) RETURN Boolean; PROCEDURE Sort_Generic(List: IN OUT ListType); ------------------------------------------------------------------ --| Specification for Generic Exchange Sort - will sort input --| array in order according to Compare --| Author: Michael B. Feldman, The George Washington University --| Last Modified: September 1995 ------------------------------------------------------------------