[Haskell-cafe] Quicksort in Haskell

yrazes yrazes at gmail.com
Mon Nov 7 18:45:00 CET 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111107/9e814d8b/attachment.htm>


More information about the Haskell-Cafe mailing list