5 lines
62 B
Swift
5 lines
62 B
Swift
|
|
let s = "1234"
|
||
|
|
if let x = s.toInt() {
|
||
|
|
println("\(x + 1)")
|
||
|
|
}
|