Hallo liebe Leute. Hola gente. I'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] -> [t] -> [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 "JOJO u cant do this"</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] -> [t,t]->[t,t,t,t]</font></b><font color="#000099">.</font> </div>
<div><br></div><div>Sorry for my bad english. I'm Argentinean.</div><div><br></div><div>Thanks!</div>