StackOverflow 文件 Haskell Language 教程 排序演算法 快速排序 快速排序 Created: November-22, 2018 qsort :: (Ord a) => [a] -> [a] qsort [] = [] qsort (x:xs) = qsort [a | a <- xs, a < x] ++ [x] ++ qsort [b | b <- xs, b >= x] 氣泡排序合併排序