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

  • Munchkin the Teddy Bear

    Munchkin the

    30 EYLÜL 2011
  • nemoking of kinges

    nemoking of

    4 EYLÜL 2009
  • RealPapaPit

    RealPapaPit

    16 Mart 2009