[Haskell] [Haskell - I/O] Problem with 'readFile'
Udo Stenzel
u.stenzel at web.de
Sun Aug 27 08:41:35 EDT 2006
Bulat Ziganshin wrote:
> > length mates_str `seq` return ()
>
> it's the same. i recommend you to use:
>
> return $! tail mates_str
>
> 'tail' should be slightly faster than 'len'
...but also slightly less correct. You probably meant 'last'. (But
it's still an ugly and dangerous programming style.)
Udo.
--
Why is television called a medium?
Because it is neither rare nor well-done.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org//pipermail/haskell/attachments/20060827/3114e170/attachment.bin
More information about the Haskell
mailing list