Haskell Quicksort
{codecitation class="brush: plain; gutter: true;"}
qsort [] = []
qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++ qsort (filter (>= x) xs)
Tagged as :
haskell
{codecitation class="brush: plain; gutter: true;"}
qsort [] = []
qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++ qsort (filter (>= x) xs)