summaryrefslogtreecommitdiff
path: root/insertion.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2015-10-15 21:18:48 +1100
committerJed Barber <jjbarber@y7mail.com>2015-10-15 21:18:48 +1100
commita7a0c2924c68c7dc457debb60f44bffc4aa80682 (patch)
tree9856d3765a3c0929624e4a397e0eec61dee45a04 /insertion.ads
parent3e30658ec5ca3ade4f9295129729127a30b4addf (diff)
Added cocktail, insertion, strand sorts
Diffstat (limited to 'insertion.ads')
-rw-r--r--insertion.ads16
1 files changed, 16 insertions, 0 deletions
diff --git a/insertion.ads b/insertion.ads
new file mode 100644
index 0000000..19b6b2c
--- /dev/null
+++ b/insertion.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 Insertion is
+
+ procedure Sort(Arr : in out Array_T);
+
+end Insertion;
+