Haskell: различия между версиями

>Глючарина
amboxified
Особенности языка: there is no "partition" in Haskell.
Строка 72: Строка 72:
<pre>
<pre>
   qs [] = []
   qs [] = []
   qs (x:xs) = (qs l) ++ [x] ++ (qs r) where (l,r) = partition (<x) xs
   qs (x:xs) = (qs l) ++ [x] ++ (qs r) where (l,r) = [x|x <- xs,x >= s]
</pre>
</pre>