aboutsummaryrefslogtreecommitdiff
path: root/comparison/SML/bsort-40000.sml
diff options
context:
space:
mode:
Diffstat (limited to 'comparison/SML/bsort-40000.sml')
-rw-r--r--comparison/SML/bsort-40000.sml3
1 files changed, 2 insertions, 1 deletions
diff --git a/comparison/SML/bsort-40000.sml b/comparison/SML/bsort-40000.sml
index 5e6e98b..d9e1a00 100644
--- a/comparison/SML/bsort-40000.sml
+++ b/comparison/SML/bsort-40000.sml
@@ -12,7 +12,8 @@ fun go xs 0 = xs
| go xs n = go (bs xs n) (n-1);
-fun bsort xs = go xs (length(xs) - 1);
+fun bsort [] = []
+ | bsort xs = go xs (length(xs) - 1);
(* Creates a random list *)