[Haskell-cafe] Re: External Sort: Sort a 10-million integer file with just 256M of ram.

Achim Schneider barsoap at web.de
Mon Oct 27 04:47:42 EDT 2008


Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:

> Hello Albert,
> 
> Saturday, October 25, 2008, 9:02:14 PM, you wrote:
> 
> > u = (putStrLn . show . last $ list) >> (putStrLn . show . head $
> > list) where list = [1..10^8::Int]
> 
> i prefer to write it as
> 
> main = do let list = [1..10^8]
>           print (last list)
>           print (head list)
> 
Don't you slam pointless style!

-- 
(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.



More information about the Haskell-Cafe mailing list