summaryrefslogtreecommitdiff
path: root/sort/shell.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2015-10-18 13:19:48 +1100
committerJed Barber <jjbarber@y7mail.com>2015-10-18 13:19:48 +1100
commitfaeec19d3a971efdc94e86c5fc2d59239b04e84a (patch)
tree57e3f911660bf506594b72df1fab4301cfebaa03 /sort/shell.ads
parent63c3043200de6b28a8c192f1b5625940435ea55e (diff)
Added shell, stooge, pancake sorts
Diffstat (limited to 'sort/shell.ads')
-rw-r--r--sort/shell.ads16
1 files changed, 16 insertions, 0 deletions
diff --git a/sort/shell.ads b/sort/shell.ads
new file mode 100644
index 0000000..0ce3cb4
--- /dev/null
+++ b/sort/shell.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 Shell is
+
+ procedure Sort(Arr : in out Array_T);
+
+end Shell;
+