[Haskell-cafe] Quicksort in Haskell

KC kc1956 at gmail.com
Mon Nov 7 22:23:57 CET 2011


What is your question?



On Mon, Nov 7, 2011 at 9:45 AM, yrazes <yrazes at gmail.com> wrote:
> module Main (main) where
> quicksort [] = []
> quicksort (s:xs) = quicksort [x|x <- xs,x < s] ++ [s] ++ quicksort [x|x <-
> xs,x >= s]
> main = putStr "Ingrese la lista\n"
>        [xs] <- getLine
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>



-- 
--
Regards,
KC



More information about the Haskell-Cafe mailing list