intercalate (a:b:_) (c:d:_) = [a,c,b,d]<br><br><div class="gmail_quote">On Thu, Aug 30, 2012 at 8:52 AM, Ezequiel Hernan Di Giorgi <span dir="ltr">&lt;<a href="mailto:hernan.digiorgi@gmail.com" target="_blank">hernan.digiorgi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hallo liebe Leute. Hola gente. I&#39;m starting with Haskell and i have some problems:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div><font color="#000099"><b>intercalate :: [t] -&gt; [t] -&gt; [t]</b></font></div>

</div><div><div><font color="#000099"><b>intercalate [a,b] [c,d] = [a,c,b,d]</b></font></div></div><div><div><font color="#000099"><b>intercalate (_) (_) = error &quot;JOJO u cant do this&quot;</b></font></div></div></blockquote>


<div><br></div><div>Are there any form to restrict the parmaters that only allow to call the function <b><font color="#000099">intercalate</font></b> with two arrays of two elements, in compilation time? Cause i cant write<b> <font color="#000099">intercalete :: [t,t] -&gt; [t,t]-&gt;[t,t,t,t]</font></b><font color="#000099">.</font> </div>


<div><br></div><div>Sorry for my bad english. I&#39;m Argentinean.</div><div><br></div><div>Thanks!</div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br>