ios - How to clone Swift generic array? -


I need a deep copy of a swift normal array. I can do it one by one in the loop, but there can be a more compact solution.

Try this:

  var myArray = [double] (count : 5, Repeat value: 1.0) Copy the NSLog ("% @", MyRare) var = MyAsLog ("% @", copied arrays)  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -