10 lines
198 B
Text
10 lines
198 B
Text
var str = "42"
|
|
str = (parse(str) + 1).ToString()
|
|
|
|
//Another option:
|
|
str = (Integer(str) + 1).ToString()
|
|
|
|
//And another option using interpolation:
|
|
str = "\(parse(str) + 1)"
|
|
|
|
print(str) //Outputs 45
|