summaryrefslogtreecommitdiff
path: root/sort/bubble.ads
diff options
context:
space:
mode:
Diffstat (limited to 'sort/bubble.ads')
-rw-r--r--sort/bubble.ads17
1 files changed, 17 insertions, 0 deletions
diff --git a/sort/bubble.ads b/sort/bubble.ads
new file mode 100644
index 0000000..529c5c6
--- /dev/null
+++ b/sort/bubble.ads
@@ -0,0 +1,17 @@
+
+
+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 Bubble is
+
+ procedure Sort(Arr : in out Array_T);
+ procedure Optimized(Arr : in out Array_T);
+
+end Bubble;
+