[plug] I would write 500 lines, and I would write 500 more...
Cameron Patrick
cameron at patrick.wattle.id.au
Mon Dec 15 16:15:52 WST 2003
On Mon, Dec 15, 2003 at 04:03:02PM +0800, Bernard Blackham wrote:
| wha? haskell:
|
| (putStr.unlines.replicate 500) "I will not throw paper aeroplanes in class"
Knew there must have been a simpler way there somewhere. I make no
pretensions of being anything remotely approximating a haskell guru :-/
| perl:
|
| print "I will not throw paper aeroplanes in class\n"x500;
(That can't be perl, I can read it.)
Thinking about it, the same would probably work in Python too, with a
minor syntactical variation:
print 500*"I will not throw paper aeroplanes in class.\n"
Cameron.
More information about the plug
mailing list