3 ms·
That's why I wished anaphoric recursion was more used. prod (x:xs) = x * (self xs)
by agumonkey 12y ago
That's why I wished anaphoric recursion was more used.
prod (x:xs) = x * (self xs)
- tome 12y agoprod' self [] = 1 prod' self (x:xs) = x * self xs prod = fix prod'