Yes, do you have a Python background?<br>Because I&#39;ve often see misunderstanding about the utility of tuples with persons who were used to Python, because Python tutorials usually induce <u><i><b>BAD</b></i></u> practices in this respect (considering tuples and lists equivalent, for instance).<br>

Add to this the dynamic typing which allows you to have whatever type you want in your tuples&#39; cells, and when coming to Haskell, it&#39;s somewhat uneasy to see that there is not a tuple type, but <b>an infinity</b>.<br>

<br>My advice (which is only my opinion) is that you should restrict you use of tuples. For instance do not use them to make vectors (is it what you were trying to do? Because it looked like you were trying to handle 2D and 3D vectors), do something more type-explicit, by making a new datatype Vector, or 2 new datatypes Vector2 and Vector3.<br>

You shouldn&#39;t use tuples as a way to structure data (i.e. in replacement of real types), only for convenience when a function has to return several values.<br><br><br><div class="gmail_quote">2011/10/2 Felipe Almeida Lessa <span dir="ltr">&lt;<a href="mailto:felipe.lessa@gmail.com">felipe.lessa@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sun, Oct 2, 2011 at 4:26 PM, Edward Z. Yang &lt;<a href="mailto:ezyang@mit.edu">ezyang@mit.edu</a>&gt; wrote:<br>


&gt; What are you actually trying to do?  This seems like a rather<br>
&gt; unusual function.<br>
<br>
</div>If you&#39;re new to the language, most likely you&#39;re doing something<br>
wrong if you need this kind of function.  =)<br>
<font color="#888888"><br>
--<br>
Felipe.<br>
</font><div><div></div><div class="h5"><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" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>