标签:bash other otherwise 插入排序 insert main highlight sort print
insert a [] = [a] insert a (x1:xs) | x1 > a = a:x1:xs | otherwise = x1:insert a xs sort [] = [] sort (a1:ax) = insert a1 (sort ax) main = do print $ sort [10,2,432,5436]
标签:bash other otherwise 插入排序 insert main highlight sort print
原文地址:http://www.cnblogs.com/HC-LittleJian/p/7851082.html