Type Annotations
#typesafelanguage
Overview
let surname: String = "Lasso"
var score: Int = 0
// In arrays
var albums: [String] = ["Red", "Fearless"]
// In arrays that have different types
var user: [String: String] = ["id": "@twostraws"]Sources
Videos
Articles / Documents
Last updated