[Haskell-cafe] Lazy Lists and IO

Andrew Coppin andrewcoppin at btinternet.com
Thu Jul 12 14:41:42 EDT 2007


Brent Yorgey wrote:
>
>     > Nevertheless, length is a function you should rarely use.
>     >
>
>     Amen.
>
>     (I believe the Wiki mentions this concept somewhere... Maybe we should
>     rename it unsafeLength? No, OK, how about... um... slowLength?)
>
>
> It isn't actually slow... how about 
> beSureYouReallyWantIntBeforeUsingThisLength? =)

O RLY?

 > length [1..]

Takes almost *forever* on my machine. ;-)



More information about the Haskell-Cafe mailing list