
19 May
2011
19 May
'11
10:05 a.m.
Hi, I have a question about the cost of list comprehension and map function. For example, I have a list of Double and I want to do lots of calculation on it. There are two ways to do that: 1. [x ** 3 | x <- list] 2. map (flip (**) 3) list I am wondering if the cost of using them could be very different and why. Thanks.