Comprehensions work much better if you type them:

ys = Float64[runge(x) for x in xs]

 — John

On May 7, 2014, at 7:08 AM, Hans W Borchers <[email protected]> wrote:

> Thanks a lot.
> 
> Before putting this question I searched for "map" through the Julia 0.3 
> Manual (PDF version)
> and did not find a reference to a map() function. Now repeating this 
> procedure I see it. Sorry.
> 
> I am still wondering what comprehension is good for if it dismisses all the 
> type information.
> 
> 
> On Wednesday, May 7, 2014 1:58:40 PM UTC+2, Tobias Knopp wrote:
> try 
>     
>     ys = map(runge,xs)
>  

Reply via email to