
30 Aug
2012
30 Aug
'12
9:14 a.m.
intercalate (a:b:_) (c:d:_) = [a,c,b,d] On Thu, Aug 30, 2012 at 8:52 AM, Ezequiel Hernan Di Giorgi < hernan.digiorgi@gmail.com> wrote:
Hallo liebe Leute. Hola gente. I'm starting with Haskell and i have some problems:
*intercalate :: [t] -> [t] -> [t]* *intercalate [a,b] [c,d] = [a,c,b,d]* *intercalate (_) (_) = error "JOJO u cant do this"*
Are there any form to restrict the parmaters that only allow to call the function *intercalate* with two arrays of two elements, in compilation time? Cause i cant write* intercalete :: [t,t] -> [t,t]->[t,t,t,t]*.
Sorry for my bad english. I'm Argentinean.
Thanks!
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners