{"blog_url":"https://mzp.hatenadiary.org/","version":"1.0","width":"100%","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e544\u3002Python\u3067Ruby\u306eeach_with_index\u307f\u305f\u3044\u306a\u3082\u306e\u3002 kyeeva blog!\u3092\u8aad\u3093\u3067\u3001\u305d\u3046\u3044\u3048\u3070Ruby1.9\u304b\u3089 [1,2,3].each.with_index do|x,i| p x,i end \u3063\u3066\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3093\u3060\u3088\u306a\u3041\u3001\u3068\u601d\u3063\u305f\u306e\u3067\u3084\u3063\u3066\u307f\u305f\u3002\u6700\u7d42\u7684\u306b\u3001 for (x,i) in lst(['a','b','c']).each().with_index(): print x,i \u3068\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3057\u3001\u826f\u3057\u3068\u3057\u3088\u3046\u3002 \u4f7f\u3044\u65b9 # \u666e\u901a\u306b\u30eb\u30fc\u30d7\u3059\u308b(each()\u306f\u306a\u304f\u3066\u3082\u3044\u3044) for x in lst(['a','b','c']).\u2026","provider_name":"Hatena Blog","url":"https://mzp.hatenadiary.org/entry/20090313/withindex","title":"Re:Re:Python\u3067Ruby\u306eeach_with_index\u307f\u305f\u3044\u306a\u3082\u306e","author_url":"https://blog.hatena.ne.jp/mzp/","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","published":"2009-03-13 00:00:01","author_name":"mzp","type":"rich","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090313%2Fwithindex\" title=\"Re:Re:Python\u3067Ruby\u306eeach_with_index\u307f\u305f\u3044\u306a\u3082\u306e - \u307f\u305a\u3074\u30fc\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>","height":"190","provider_url":"https://hatena.blog","categories":["Python","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"]}