IT練習ノート

IT関連で調べたこと(実際は嵌ったこと)を書いています。

2014-02-11から1日間の記事一覧

モナドが消える

99 questions の6問目の別解が難しい。 Prelude> Control.Monad.liftM2 (==) id reverse [1,2,3,2,1] True Prelude> Control.Monad.liftM2 (==) id reverse [1,2,3,2,4] False Prelude> となっています。次のように型を確認すると、 (1) Prelude> :t Control…