4 ms·
var one = [1, 2, 3] var two = [1, 2, 3] one == two That's because Swift checks for safety first (variable declaration).
by lcnmrn 12y ago
var one = [1, 2, 3]
var two = [1, 2, 3]
one == two
That's because Swift checks for safety first (variable declaration).
- jiaweihli 12y agoCan you explain what you mean by `checks for safety first (variable declaration)`? This issue only seems to affect arrays. Strings, numbers, and dictionaries are fine.