来自haskell.org:
quicksort :: Ord a => [a] -> [a]
quicksort [] = []
quicksort (p:xs) = (quicksort lesser) ++ [p] ++ (quicksort greater)
where
lesser = filter (< p) xs
greater = filter (>= p) xs
我的问题是“p”在这里代表哪个词?换句话说,为什么(p:xs)
而不是(x:xs)
?