我搜集的haskell学习资源,将持续在这里更新

我搜集的haskell学习资源,将持续在这里更新

 

quicksort实在是太经典了,记录下

qs' :: Ord a => [a] -> [a]
qs' []     = []
qs' (x:xs) = lhs xs ++ [x] ++ rhs xs
        where lhs xs = qs' $ filter (<=x) xs
              rhs xs = qs' $ filter (> x) xs
 

 

你可能感兴趣的:(html,PHP,.net,Blog,haskell)