R
Size: a a a
R
AT
АН
let anyType1: Any = 2
let anyType2: Any = 3
if let int1 = anyType1 as? Int, let int2 = anyType2 as? Int {
print("Сумма чисел: ", int1 + int2)
}
KG
G
Т
AT
VO
AT
ЛС
AT
ЛС
AT
ЛС
ЛС
AT
public extension Array {
subscript (safe index: Int) -> Element? {
return indices ~= index ? self[index] : nil
}
}
AT
KG