{"blog_title":"\u65b0\u8a00\u8a9e Xtal\u3092\u4f5c\u308b\u65e5\u8a18","categories":[],"published":"2006-11-18 00:00:00","width":"100%","image_url":null,"title":"Array\u3068Iterator","author_name":"xtalco","type":"rich","url":"https://xtalco.hatenadiary.org/entry/20061118","description":"\u914d\u5217\u306e\u8981\u7d20\u5de1\u56de\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 \u666e\u901a\u306bfor\u6587\u3067 for(i : 0; i<ary.length; ++i){ println(i); }Iterator\u6587\u3067 ary.each{ // Array::each\u306f\u8981\u7d20\u3092\u5de1\u56de\u3067\u304d\u308bIterator\u3092\u8fd4\u3059\u3002 println(it); }\u4e0b\u306e\u306f\u6b21\u306e\u3088\u3046\u306b\u3001each\u3092\u7701\u3044\u3066\u3082\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 ary{ println(it); }\u3053\u308c\u306b\u3088\u308a\u3001\u3042\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u3001\u623b\u308a\u5024\u3068\u3057\u3066Iterator\u3092\u8fd4\u3059\u304b\u3001\u914d\u5217\u3092\u8fd4\u3059\u304b\u306b\u95a2\u308f\u3089\u305a{}\u3092\u9069\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 foo.hoge{ // \u4ee5\u524d\u306f\u914d\u5217\u3092\u8fd4\u3059\u5834\u5408\u306f foo.foge.each{ \u3068\u2026","author_url":"https://blog.hatena.ne.jp/xtalco/","provider_name":"Hatena Blog","blog_url":"https://xtalco.hatenadiary.org/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxtalco.hatenadiary.org%2Fentry%2F20061118\" title=\"Array\u3068Iterator - \u65b0\u8a00\u8a9e Xtal\u3092\u4f5c\u308b\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>","provider_url":"https://hatena.blog","version":"1.0"}