{"provider_name":"Hatena Blog","blog_title":"espresso3389\u306e\u65e5\u8a18","title":" FlipFlop\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc","type":"rich","version":"1.0","author_name":"espresso3389","blog_url":"https://espresso3389.hatenablog.com/","description":"Algorithm - 0\u30681\u3092\u6b21\u3005\u3068\u8fd4\u3059\u7c21\u5358\u306a\u304a\u4ed5\u4e8bLL\u3058\u3083\u306a\u3044\u3051\u3069\u3001C#\u3067\u3082\u3084\u3063\u3066\u307f\u305f\u3002 using System; class FlipFlop { static void Main(string[] args) { Func<bool, Func<bool>> flipflop = f => () => {f = !f; return f;}; var ff = flipflop(false); Console.WriteLine(ff()); Console.WriteLine(ff()); Console.WriteLine(ff()); Console.WriteLine(ff(\u2026","image_url":null,"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fespresso3389.hatenablog.com%2Fentry%2F20100904%2F1283591922\" title=\" FlipFlop\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc - espresso3389\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/espresso3389/","width":"100%","categories":["C#"],"published":"2010-09-04 18:18:42","url":"https://espresso3389.hatenablog.com/entry/20100904/1283591922","provider_url":"https://hatena.blog"}