summaryrefslogtreecommitdiff
path: root/comb.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2015-10-17 14:14:43 +1100
committerJed Barber <jjbarber@y7mail.com>2015-10-17 14:14:43 +1100
commit5933f248c18914fbbce03102b340361a575eae3c (patch)
tree03739436f9e1d30505d18528d468a32bc330b40c /comb.ads
parenta7a0c2924c68c7dc457debb60f44bffc4aa80682 (diff)
Added comb, odd-even sorts
Diffstat (limited to 'comb.ads')
-rw-r--r--comb.ads16
1 files changed, 16 insertions, 0 deletions
diff --git a/comb.ads b/comb.ads
new file mode 100644
index 0000000..a8200e7
--- /dev/null
+++ b/comb.ads
@@ -0,0 +1,16 @@
+
+
+generic
+
+ type Index_T is (<>);
+ type Element_T is private;
+ type Array_T is array (Index_T range <>) of Element_T;
+
+ with function ">"(X, Y : in Element_T) return Boolean is <>;
+
+package Comb is
+
+ procedure Sort(Arr : in out Array_T);
+
+end Comb;
+