SORU
6 Mayıs 2010, PERŞEMBE


Haskell : Tipi String İnt döküm

read numarası String dönüştürebilirsiniz biliyorum:

Prelude> read "3" :: Int
3
Prelude> read "3" :: Double 
3.0

Ama nasıl Int değeri String temsil kapmak mı?

CEVAP
6 Mayıs 2010, PERŞEMBE


read ters show.

Prelude> show 3
"3"

Prelude> read $ show 3 :: Int
3

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • cdgotx

    cdgotx

    8 Kasım 2011
  • FRED

    FRED

    1 EKİM 2005
  • spectragirlz16's channel

    spectragirlz

    22 Ocak 2012