
20 Nov
2017
20 Nov
'17
4:04 p.m.
On 2017-11-20 12:13 PM, Gregory Guthrie wrote:
I have a simple function:
revFn (x:xs) = (revFn xs) . (x:) [...]
revFn [] xs = xs
Now gives an error;
“Equations for ‘revF’ have different numbers of arguments”
Please see Haskell 2010 section 4.4.3.1 "Function bindings" and look for "and the number of patterns in each clause must be the same".