[Haskell-cafe] External Sort: Sort a 10-million integer file
with just 256M of ram.
Bulat Ziganshin
bulat.ziganshin at gmail.com
Sun Oct 26 06:04:04 EDT 2008
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)
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list