StackOverflow 文档 Haskell Language 教程 排序算法 选择排序 选择排序 Created: November-22, 2018 选择排序重复选择最小元素,直到列表为空。 import Data.List (minimum, delete) ssort::Ord t => [t] -> [t] ssort [] = [] ssort xs = let { x = minimum xs } in x : ssort (delete x xs) 冒泡排序