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

  • AutoHotkey Tutorials

    AutoHotkey T

    29 Mayıs 2010
  • Tom Megalis

    Tom Megalis

    18 NİSAN 2006
  • FF Radioo

    FF Radioo

    14 ŞUBAT 2007