Scratchpad & notes about Swift.
|Reference to Owner|
|Increment & decrement operators|
|Pushing onto an array|
|Counting for loop|
|HTTP Requests||Alamofire, PMHTTP||request|
let lets you assign a variable and bans future
re-assignment to that variable. But in Swift, that value is also immutable.
It’s helpful to think of Swift
const and Swift
var as JS
let a = 0 // In swift, the following line will cause an error let a = 1 // and this line is also wrong a = a + 1