summaryrefslogtreecommitdiffstats
path: root/qsort.hs
diff options
context:
space:
mode:
Diffstat (limited to 'qsort.hs')
-rw-r--r--qsort.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/qsort.hs b/qsort.hs
new file mode 100644
index 0000000..f349b82
--- /dev/null
+++ b/qsort.hs
@@ -0,0 +1,3 @@
+
+qsort (x:xs) = qsort ( filter (< x) xs) ++ [x] ++ qsort ( filter (> x) xs )
+qsort [] = []