[plug] I would write 500 lines, and I would write 500 more...
Bernard Blackham
bernard at blackham.com.au
Mon Dec 15 16:03:02 WST 2003
On Mon, Dec 15, 2003 at 03:30:24PM +0800, Cameron Patrick wrote:
> But it's better than in Haskell:
> write_lines 0 = return ()
> write_lines n = do putStr "I will not throw paper aeroplanes in class.\n"
> write_lines (n-1)
> main = write_lines 500
wha? haskell:
(putStr.unlines.replicate 500) "I will not throw paper aeroplanes in class"
perl:
print "I will not throw paper aeroplanes in class\n"x500;
:)
Bernard.
--
Bernard Blackham <bernard at blackham dot com dot au>
More information about the plug
mailing list