[plug] qsort
Simon Scott
sscott at iinet.net.au
Mon Jun 10 16:47:43 WST 2002
On Monday 10 June 2002 4:31 pm, Cameron Patrick wrote:
> On Mon, Jun 10, 2002 at 01:34:55PM +0800, The Thought Assassin wrote:
> > qsort lt [] = []
> > qsort lt (x:xs) = qsort lt y ++ [x] ++ qsort lt z
> > where (y,z) = partition (lt x) xs
> >
> > Now that is a thing of beauty.
>
> Ahh... Haskell... are you a UWA student by any chance? ;)
>
> Here's a challenge: rewrite my bogosort in Haskell using monads.
I just wish I understood a single line of that code.
Better yet, whats a monad?
Even better yet, whats Haskell?
What the!
More information about the plug
mailing list