問題:
I know you can convert a String
to an number with read
:我知道您可以使用read
將String
轉換爲數字:
Prelude> read "3" :: Int
3
Prelude> read "3" :: Double
3.0
But how do you grab the String
representation of an Int
value?但是如何獲取Int
值的String
表示呢?
解決方案:
參考一: https://en.stackoom.com/question/BgJb參考二: https://stackoom.com/question/BgJb