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
Post a Comment