Swift: What happens when a reference type constant is assigned to a variable, but that variable changes?

前端 未结 0 1248
-上瘾入骨i
-上瘾入骨i 2020-12-07 18:09

I am confused on the difference between var and let for reference type in swift.

In the code below, let head is assigned to var current:

 public class          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题