
9 Aug
2007
9 Aug
'07
10:05 a.m.
prod = sum . zipWith (*)
This is the slow part. Prelude.read ist really slow.
Futhermore use the recusion pattern again: to_int = map read
What is n used for? @Lutz: Those are some nice tricks... Thanks! Now, the 'n' is for getting the number of numbers in the list. Which I don't need, since I had a way around it. I just had to skip that
@Donald: Thanks for the link. line...