Hey, so I created a for loop in swift which adds values from 1 to 1000000 in an empty array and then I print the array. But for some reason it runs really slow. And if I do it until 100 it's fast. But still that's the slowest I have seen-in other programming languages it's instant. Is it that Swift is slower or do I have to use some library I am not using?
3
0
978