{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmametter.hatenablog.com%2Fentry%2F20070614%2Fp1\" title=\" each_with_prevsucc \u306e\u7d9a\u304d - \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>","image_url":null,"blog_title":"\u307e\u3081\u3081\u3082","provider_name":"Hatena Blog","width":"100%","description":"each \u3067\u96a3\u306e\u8981\u7d20\u3092\u53c2\u7167 #3 - odz buffer [1].each_with_prevsucc do |i| p [prev, i, succ] end # => [nil, nil, nil]\u3042\u308a\uff1f\u3042\u3068\u3001\u3053\u308c\u30cd\u30b9\u30c8\u3059\u308b\u3068\u307e\u305a\u3044\u3002 \u3046\u3001\u305f\u3057\u304b\u306b\u3002\u3042\u3068\u3001\u7a7a\u30ea\u30b9\u30c8\u3067\u3082 yield \u3057\u3061\u3083\u3046\u3002id:odz \u3055\u3093\u306e\u5bfe\u7b56\u3060\u3068 $index \u304c\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u5909\u306a\u3053\u3068\u306b\u306a\u308b\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u3002\u81ea\u5206\u6d41\u306e\u4fee\u6b63\u7248\u3002 module Enumerable PREVSUCCS = {} def each_with_prevsucc prevsucc = [nil] * 3 (PREVSUCCS[Thread.c\u2026","published":"2007-06-14 00:00:00","blog_url":"https://mametter.hatenablog.com/","title":" each_with_prevsucc \u306e\u7d9a\u304d","categories":["Ruby"],"type":"rich","height":"190","version":"1.0","author_url":"https://blog.hatena.ne.jp/ku-ma-me/","url":"https://mametter.hatenablog.com/entry/20070614/p1","author_name":"ku-ma-me","provider_url":"https://hatena.blog"}