I
Size: a a a
KS
Y
func getNumberFrom(string: String?) -> Int? {
guard
let value = string
else {
return
nil }
return Int(value)
}
getNumberFrom2(string: String?) -> Int? {
switch string {
case .some(
let value):
return Int(value)
case .none:
return
nil
}
}
SM
РС
SM
РС
РС
S