aboutsummaryrefslogtreecommitdiff
path: root/comparison/SML/bsort-40000.sml
diff options
context:
space:
mode:
authorShinya Sato <shinnya.sato@gmail.com>2022-05-02 09:49:01 +0900
committerShinya Sato <shinnya.sato@gmail.com>2022-05-02 09:49:01 +0900
commit8c7809d024e85d0a8acfb794a4db41b0e4bc13e6 (patch)
tree25ac81bad7be415d7cf75457275f7161d79f9f10 /comparison/SML/bsort-40000.sml
parent429543c748aaf81b2a4207318eb5a05259469b21 (diff)
downloadinpla-8c7809d024e85d0a8acfb794a4db41b0e4bc13e6.tar.gz
inpla-8c7809d024e85d0a8acfb794a4db41b0e4bc13e6.zip
v0.8.2-1
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 *)