diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2013-12-02 22:56:10 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2013-12-02 22:56:10 +0100 |
commit | 2b722cf3bdd267c999f25c4f1c2ebb4cc4d27cb4 (patch) | |
tree | 95a2fa4d0aac52f4a82e234276ce7ede15a8e8ff /qsort.hs | |
parent | 40860a46fa0a22cc376b015e36744c8573f92654 (diff) | |
download | haskell-2b722cf3bdd267c999f25c4f1c2ebb4cc4d27cb4.tar.gz haskell-2b722cf3bdd267c999f25c4f1c2ebb4cc4d27cb4.tar.bz2 haskell-2b722cf3bdd267c999f25c4f1c2ebb4cc4d27cb4.zip |
add other haskell files
Diffstat (limited to 'qsort.hs')
-rw-r--r-- | qsort.hs | 3 |
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 [] = [] |