
11 Aug
2011
11 Aug
'11
1:37 p.m.
Is it possible to use the pattern (x:xs) using a parallel array [::]? In other words, is there a way to parallelize the code: myfunc :: [:String:] -> [String] myfunc [::] = [] myfunc (x:xs) = … if I try to compile this I get the error: Couldn't match expected type `[:String:]' with actual type `[t0]' In the pattern: x : xs Is there a syntax in order to use the (x:xs) pattern? Thanks in advance Luca.