[julia-users] Re: Loop comprehensions unable to do type inferences (in local scope)

2015-07-02 Thread Tom Breloff
I can't comment on exactly why the return argument isn't inferred, but I'm pretty sure that's a feature that is still actively being worked on by the core devs. When you need to ensure the correct type from a comprehension, you should be explicit: ... mldBoot1 = Float64[ mean(sub(lD,

[julia-users] Re: Loop comprehensions unable to do type inferences (in local scope)

2015-07-02 Thread colintbowers
I didn't know you could do that. That is a very satisfactory solution, thank you. -Colin On Friday, 3 July 2015 00:39:53 UTC+10, Tom Breloff wrote: I can't comment on exactly why the return argument isn't inferred, but I'm pretty sure that's a feature that is still actively being worked on