{"author_url":"https://blog.hatena.ne.jp/kazu-yamamoto/","version":"1.0","published":"2008-06-18 17:53:32","image_url":null,"height":"190","author_name":"kazu-yamamoto","description":"State \u30e2\u30ca\u30c9\u306e\u5229\u7528\u4f8b\u3068\u3057\u3066\u7591\u4f3c\u4e71\u6570\u304c\u6319\u3052\u3089\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3002 \u30e2\u30ca\u30c9\u306e\u3059\u3079\u3066 Haskell/Understanding monads \u3067\u3082\u3001State \u30e2\u30ca\u30c9\u306e\u4f8b\u3068\u3057\u3066\u3001\u7591\u4f3c\u4e71\u6570\u306f\u9069\u5207\u3067\u306f\u306a\u3044\u3068\u5206\u308a\u307e\u3057\u305f\u3002\u7591\u4f3c\u4e71\u6570\u306f\u3001\u5358\u306a\u308b\u6570\u5217\u3067\u3059\u304b\u3089\u3001\u30ea\u30b9\u30c8\u3068\u3057\u3066\u751f\u6210\u3057\u3001\u6b32\u3057\u3044\u5206\u3060\u3051\u5148\u982d\u304b\u3089\u4f7f\u3048\u3070\u3044\u3044\u3093\u3067\u3059\u306d\u3002Haskell \u306f\u9045\u5ef6\u8a55\u4fa1\u306a\u3093\u3067\u3059\u304b\u3089\u3002 rand x = (x * 7 + 5) `mod` 17 randList = iterate rand 8 take 20 randList \u2192 [8,10,7,3,9,0,5,6,13,11,14,1,12,4,16,1\u2026","url":"https://kazu-yamamoto.hatenablog.jp/entry/20080618/1213779212","provider_url":"https://hatena.blog","blog_title":"\u3042\u3069\u3051\u306a\u3044\u8a71","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazu-yamamoto.hatenablog.jp%2Fentry%2F20080618%2F1213779212\" title=\"State \u30e2\u30ca\u30c9\u3068\u7591\u4f3c\u4e71\u6570 - \u3042\u3069\u3051\u306a\u3044\u8a71\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"State \u30e2\u30ca\u30c9\u3068\u7591\u4f3c\u4e71\u6570","provider_name":"Hatena Blog","categories":["Haskell"],"width":"100%","type":"rich","blog_url":"https://kazu-yamamoto.hatenablog.jp/"}