Logo

Programming-Idioms

History of Idiom 22 > diff from v82 to v83

Edit summary for version 83 by avihil:
[Clojure] this can handle also int case

Version 82

2019-12-02, 13:52:12

Version 83

2019-12-10, 10:26:59

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 conversion
Extra Keywords
int base conversion
Code
(Integer/parseInt s)
Code
(Integer. s)
Doc URL
http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html#parseInt-java.lang.String-
Doc URL
http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html#parseInt-java.lang.String-