I don&#39;t think the collection type (a,b) is best thought of as a loop.<br>
Neither is a (non-trivial) tree.<br><br><div><span class="gmail_quote">On 6/20/07, <b class="gmail_sendername">Andrew Coppin</b> &lt;<a href="mailto:andrewcoppin@btinternet.com">andrewcoppin@btinternet.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Derek Elkins wrote:<br>&gt; On Tue, 2007-06-19 at 18:49 -0400, Brandon S. Allbery KF8NH wrote:
<br>&gt;<br>&gt;&gt; Haskell is, in many ways, a descendant of Lisp.&nbsp;&nbsp;This does tend to<br>&gt;&gt; lead to lists being *the* collection type, in my experience:&nbsp;&nbsp;sure,<br>&gt;&gt; others get used, but lists are the ones you see in examples and such.
<br>&gt;&gt;<br>&gt;<br>&gt; Not in my experience.&nbsp;&nbsp;Certainly lists are used all over the place*, but<br>&gt; I rarely see them abused.&nbsp;&nbsp;Also, &quot;lists&quot; aren&#39;t lists in Lisp, they&#39;re<br>&gt; more akin to rose-trees (or going the other way, there are only pairs in
<br>&gt; Lisp).<br>&gt;<br><br><a href="http://xkcd.com/c224.html">http://xkcd.com/c224.html</a><br><br>&gt; In practice, almost all Haskell programs use custom defined algebraic<br>&gt; data types which are usually tree like.&nbsp;&nbsp;Declaring and using data types
<br>&gt; is easier in Haskell than it is in almost any other language.<br>&gt;<br><br>True...<br><br>&gt; * As others have mentioned, lists represent loops and loops are<br>&gt; extremely common in programming in general.
<br>&gt;<br><br>Um... surely *every* collection type represents a loop?<br><br>_______________________________________________<br>Haskell-Cafe mailing list<br><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org
</a><br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br></blockquote></div><br>