{"provider_name":"Hatena Blog","published":"2011-06-15 00:00:00","type":"rich","description":"Problem 12 option#map next_combination(Some(e2 :: tail)) match { case Some(b) => Some(e2 :: b) case None => None } \u306f\u3001 next_combination(Some(e2 :: tail)).map(e2 :: _) \u3068\u66f8\u3051\u308b\u3093\u3067\u3059\u306d\u3048\u3002\u3044\u3084\u3001\u66f8\u3051\u306a\u304d\u3083\u304a\u304b\u3057\u3044\u3068\u601d\u3063\u3066\u307e\u3057\u305f\u304c\u3002 option#foreach \u540c\u69d8\u306b\u3001 next_combination(Some(es0)) match { case Some(es2) => pq.enqueue((value(es2), es2)\u2026","width":"100%","author_url":"https://blog.hatena.ne.jp/inamori/","author_name":"inamori","version":"1.0","title":"Scala\u3067Project Euler\uff0825\uff09","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110615%2Fp1\" title=\"Scala\u3067Project Euler\uff0825\uff09 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"inamori\u2019s diary","provider_url":"https://hatena.blog","categories":["Scala"],"height":"190","url":"https://inamori.hateblo.jp/entry/20110615/p1","blog_url":"https://inamori.hateblo.jp/","image_url":null}