{"blog_title":"\u307e\u3081\u3081\u3082","categories":["Ruby"],"description":"each\u3067\u56de\u3057\u3066\u308b\u3068\u304d\u306e\u6b21\u306e\u8981\u7d20\u304c\u307b\u3057\u3044 - Greenbear Diary (2007-06-12) \u3042\u308b\u3042\u308b\u3002\u50d5\u306e\u89e3\u7b54\u3002 module Enumerable PREVS = {} SUCCS = {} def each_with_prevsucc first = true PREVS[Thread.current] = cur = nil each do |succ| if first first = false else SUCCS[Thread.current] = succ yield cur PREVS[Thread.current] = cur end cur = succ en\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmametter.hatenablog.com%2Fentry%2F20070613%2Fp2\" title=\" each_with_prevsucc  - \u307e\u3081\u3081\u3082\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" each_with_prevsucc ","author_name":"ku-ma-me","height":"190","provider_name":"Hatena Blog","image_url":null,"width":"100%","blog_url":"https://mametter.hatenablog.com/","url":"https://mametter.hatenablog.com/entry/20070613/p2","author_url":"https://blog.hatena.ne.jp/ku-ma-me/","version":"1.0","provider_url":"https://hatena.blog","published":"2007-06-13 00:00:01","type":"rich"}