{"blog_title":"Camera Obscura","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2022%2F04%2F03%2F150131\" title=\"\u5358\u8abf\u975e\u6e1b\u5c11\u3068\u5358\u8abf\u975e\u5897\u52a0\u3067\u914d\u5217\uff08Enumerator\uff09\u3092\u5207\u65ad\u3059\u308b - Camera Obscura\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","author_name":"obelisk2","url":"https://obelisk.hatenablog.com/entry/2022/04/03/150131","author_url":"https://blog.hatena.ne.jp/obelisk2/","version":"1.0","provider_url":"https://hatena.blog","description":"\u8981\u3059\u308b\u306b\u3053\u308c\u3067\u3059\u3002 atcoder.jp \u914d\u5217 A \u304c\u4e0e\u3048\u3089\u308c\u307e\u3059\u3002 A \u3092\u4f55\u7b87\u6240\u304b\u3067\u5207\u3063\u3066\u3001A \u306e\u9023\u7d9a\u3057\u305f\u90e8\u5206\u3067\u3042\u308b\u3088\u3046\u306a\u3044\u304f\u3064\u304b\u306e\u6570\u5217\u306b\u5206\u3051\u307e\u3059\u3002 \u3053\u306e\u6642\u3001\u5206\u3051\u3089\u308c\u305f\u3042\u3068\u306e\u6570\u5217\u306f\u5168\u3066\u3001\u5358\u8abf\u975e\u6e1b\u5c11\u307e\u305f\u306f\u5358\u8abf\u975e\u5897\u52a0\u306a\u5217\u306b\u306a\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u30b3\u30fc\u30c9 Enumerable \u306b\u3053\u3093\u306a\u30e1\u30bd\u30c3\u30c9updown_cut\u3092\u751f\u3084\u3057\u3066\u307f\u307e\u3057\u305f\u3002 module Enumerable def updown_cut e = to_enum updown = 0 calc = ->(compare) { case updown when 0 then [compare, false] when -1 case c\u2026","height":"190","published":"2022-04-03 15:01:31","image_url":null,"type":"rich","blog_url":"https://obelisk.hatenablog.com/","categories":["Ruby"],"title":"\u5358\u8abf\u975e\u6e1b\u5c11\u3068\u5358\u8abf\u975e\u5897\u52a0\u3067\u914d\u5217\uff08Enumerator\uff09\u3092\u5207\u65ad\u3059\u308b","width":"100%"}