
7 Jun
2015
7 Jun
'15
9:33 a.m.
Hi!
zipWith(\) z1 z2 ........ this fails but works when using * or + or - ....... I also tried using div and `div` but they failed to.
The divide operator is slash (/) not backslash (\):
zipWith (/) [0.1, 0.2] [0.2, 0.4] [0.5,0.5]
Also, div should work as long you're using a Integral type like Int (you may be using Float or Double):
zipWith div [1, 2] [2, 2] [0,1]
Cheers