Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
練習問題 C
>>>
:type 'H'
'H' :: Char>>>
:type "H"
"H" :: [Char]>>>
:type 2001
2001 :: Num t => t>>>
:type "2001"
"2001" :: [Char]>>>
[1, 2, 3] ++ [3, 2, 1]
[1,2,3,3,2,1]>>>
"Hello" ++ " World!"
"Hello World!">>>
[1, 2, 3] ++ []
[1,2,3]>>>
"Hello" ++ " " ++ "World!"
"Hello World!"