Logo

Programming-Idioms

History of Idiom 22 > diff from v54 to v55

Edit summary for version 55 by programming-idioms.org:
[Haskell] Less whitespace

Version 54

2016-11-13, 22:40:13

Version 55

2016-11-27, 14:41:52

Idiom #22 Convert string to integer

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

Illustration

Idiom #22 Convert string to integer

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

Illustration
Extra Keywords
int base
Extra Keywords
int base
Code
let i = read s :: Integer

Code
let i = read s :: Integer