Haskell: различия между версиями
Нет описания правки |
>Lelf Откат правки 83543 участника 83.130.147.117 (обс.) There is. Anyway, your code is wrong |
||
| Строка 72: | Строка 72: | ||
<pre> | <pre> | ||
qs [] = [] | qs [] = [] | ||
qs (x:xs) = (qs l) ++ [x] ++ (qs r) where (l,r) = | qs (x:xs) = (qs l) ++ [x] ++ (qs r) where (l,r) = partition (<x) xs | ||
</pre> | </pre> | ||