関数型プログラミング言語Haskell Part7
■ このスレッドは過去ログ倉庫に格納されています
0673低級プログラマ(Java)
2007/07/06(金) 02:36:54main = do cs <- getContents
putStrLn $ unlines $ map toUpper cs
ToUpper.hs:4:31:
Couldn't match expected type `String' against inferred type `Char'
Expected type: [String]
Inferred type: [Char]
In the second argument of `($)', namely `map toUpper cs'
In the second argument of `($)', namely
`unlines $ (map toUpper cs)'
./ ;ヽ
l _,,,,,,,,_,;;;;i <おいおい ベイべー!
l l''|~___;;、_y__ lミ;l たったの三行でもコンパイルエラーだ!!
゙l;| | `'",;_,i`'"|;i | どう足掻いたってコンパイルが通らねぇ!!
,r''i ヽ, '~rーj`c=/
,/ ヽ ヽ`ー"/:: `ヽ
/ ゙ヽ  ̄、::::: ゙l, ホント 高卒にHaskellは地獄だぜ! フゥハハハーハァー
|;/"⌒ヽ, \ ヽ: _l_ ri ri
l l ヽr‐─ヽ_|_⊂////;`ゞ--―─-r| | / |
゙l゙l, l,|`゙゙゙''―ll___l,,l,|,iノ二二二二│`""""""""""""|二;;二二;;二二二i≡二三三l
| ヽ ヽ _|_ _ "l ̄ ̄ ̄ ̄ ̄ ̄ |二;;二二;;二=''''''''''' ̄ノ
/"ヽ 'j_/ヽヽ, ̄ ,,,/"''''''''''''⊃r‐l'二二二T ̄ ̄ ̄ [i゙''''''''''''''''"゙゙゙ ̄`"
/ ヽ ー──''''''""(;;) `゙,j" | | |
■ このスレッドは過去ログ倉庫に格納されています