<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Subtle stuff.<br><br>Thanks, everyone, for your patience. You've been VERY helpful. Great list!<br><br>Michael<br><br>--- On <b>Sat, 7/31/10, Brandon S Allbery KF8NH <i>&lt;allbery@ece.cmu.edu&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Brandon S Allbery KF8NH &lt;allbery@ece.cmu.edu&gt;<br>Subject: Re: [Haskell-cafe] Laziness question<br>To: haskell-cafe@haskell.org<br>Date: Saturday, July 31, 2010, 2:29 PM<br><br><div class="plainMail">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>On 7/31/10 14:24 , michael rice wrote:<br>&gt; Are you saying:<br>&gt; <br>&gt; [ head x ]&nbsp; -&gt;&nbsp; [ *thunk* ]&nbsp;&nbsp;&nbsp;and&nbsp;&nbsp;&nbsp;length [ *thunk* ] -&gt;&nbsp; 1, independent of<br>&gt; what *thunk* is, even head [], i.e., *thunk* never needs be
 evaluated?<br><br>Exactly.&nbsp; (I was being cagey because the first response was cagey, possibly<br>suspecting a homework question although it seems like an odd time for it.)<br><br>length not only does not look inside of the thunk, it *can't* look inside<br>it; all it knows is that it has a list, it specifically does *not* know what<br>that list can hold.&nbsp; So the only thing it can do is count the number of<br>"unknown somethings" in the list.<br><br>- -- <br>brandon s. allbery&nbsp; &nbsp;&nbsp;&nbsp;[linux,solaris,freebsd,perl]&nbsp; &nbsp; &nbsp; <a ymailto="mailto:allbery@kf8nh.com" href="/mc/compose?to=allbery@kf8nh.com">allbery@kf8nh.com</a><br>system administrator&nbsp; [openafs,heimdal,too many hats]&nbsp; <a ymailto="mailto:allbery@ece.cmu.edu" href="/mc/compose?to=allbery@ece.cmu.edu">allbery@ece.cmu.edu</a><br>electrical and computer engineering, carnegie mellon university&nbsp; &nbsp; &nbsp; KF8NH<br>-----BEGIN PGP
 SIGNATURE-----<br>Version: GnuPG v2.0.10 (Darwin)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br><br>iEYEARECAAYFAkxUa54ACgkQIn7hlCsL25XVpgCeIxWwVWhjYQQ86uE2JeJD7mCB<br>mKUAn3WwhrgrYyudv/E8pn5a0HB4gLA9<br>=H++/<br>-----END PGP SIGNATURE-----<br>_______________________________________________<br>Haskell-Cafe mailing list<br><a ymailto="mailto:Haskell-Cafe@haskell.org" href="/mc/compose?to=Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br></div></blockquote></td></tr></table><br>