Is it safe in Perl6 (as opposed to perl5 or other languages) to loop through an array while modifying it? For instance, if I have an array of websites to download, and I add failed downloads to the end of the array to re-download, will perl6 behave as expected? (I have about 50k links to download and trying to test all out would be time consuming.)
If not safe, what is a general approach? I have been thinking of storing links of interrupted downloads in another array, and loop through that array after original array was done. However, this is like a fox chasing its tail because I have to store failed downloads in another array (or overwrite the original array).