Programming-Idioms

History of Idiom 22 > diff from v39 to v40

Edit summary for version 40 :
New Scala implementation by user [meshelton]

Version 39

2016-02-16, 16:56:53

Version 40

2016-02-16, 21:28:08

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Code
val i: String = "53"
i.toInt