Thank you for this explanation DNF ! It is the first time I use collect and 
the reason why I used it was an error message suggesting that I should use 
it :) maybe because of my first mistake to use []. 

Le dimanche 10 avril 2016 23:30:10 UTC+2, DNF a écrit :
>
> The big error you made originally is calling collect in every iteration 
> of the loop. Just deleting collect speeds things up by 100x. The lesson 
> is that you should (almost) never use collect.
>
> The other lesson is: don't do [1:0.1:10]. It makes your code slower, and 
> very soon your it will stop working correctly. Just delete [].
>

Reply via email to