{"blog_url":"https://www.sakatakoichi.com/","url":"https://www.sakatakoichi.com/entry/20081023/1224744544","author_name":"jyukutyo","title":"continuation monad\u306e\u30b3\u30fc\u30c9\u304c\u8aad\u3081\u306a\u3044(Scala)","height":"190","published":"2008-10-24 07:49:04","description":"\u30e2\u30ca\u30c9\u3063\u3066\u3060\u3051\u3067\u82e5\u5e72\u5f15\u304d\u6c17\u5473\u3060\u3051\u3069\u3002 \u30e2\u30ca\u30c9\u306b\u3082\u3044\u308d\u3093\u306a\u7a2e\u985e\u304c\u3042\u3063\u3066\u3001\u305d\u306e1\u3064\u304ccontinuation monad\u3089\u3057\u3044\u3002 \u3067\u3001\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u305d\u3046\u3068\u3057\u305f\u3051\u3069\u3001\u30bd\u30fc\u30b9\u306e\u610f\u5473\u304c\u7406\u89e3\u3067\u304d\u306a\u3044\u3002 \u3044\u304b\u3093\u3002\u5b9f\u529b\u304c\u306a\u3044\u306e\u304c\u30d0\u30ec\u30d0\u30ec\u3060\u3002\u3002\u3002 type Answer = Value; /** * A continuation monad. */ case class M[A](in: (A => Answer) => Answer) { def bind[B](k: A => M[B]) = M[B](c => in (a => k(a) in c)) def map[B](f: A => B): M[B]\u2026","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/jyukutyo/","image_url":null,"type":"rich","provider_name":"Hatena Blog","version":"1.0","blog_title":"Fight the Future","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sakatakoichi.com%2Fentry%2F20081023%2F1224744544\" title=\"continuation monad\u306e\u30b3\u30fc\u30c9\u304c\u8aad\u3081\u306a\u3044(Scala) - Fight the Future\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["programming"]}