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

  • GWTLecturer

    GWTLecturer

    18 EKİM 2012
  • hans peder sahl

    hans peder s

    22 Temmuz 2009
  • MultiPlayStationMan

    MultiPlaySta

    17 Aralık 2009