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

  • Dellbear816

    Dellbear816

    4 Mart 2008
  • HowcastFoodDrink

    HowcastFoodD

    21 EYLÜL 2010
  • Titan Lee Hai

    Titan Lee Ha

    14 Temmuz 2008