{"description":"Ruby\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u3088\u308b\u3068\u3001Enumerable\u306f\u300c\u7e70\u308a\u8fd4\u3057\u3092\u884c\u306a\u3046\u30af\u30e9\u30b9\u306e\u305f\u3081\u306e Mix-in\u3002\u300d\u3068\u3042\u308b\u3002Array\u30af\u30e9\u30b9\u306a\u3093\u304b\u304c\u4ee3\u8868\u7684\u3060\u304c\u3001Enumerable\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u305f\u304f\u3055\u3093\u3042\u3063\u3066\u899a\u3048\u308b\u306e\u304c\u305f\u3044\u3078\u3093\u305d\u3046\u3002\u5b9f\u969b\u3001\u307e\u3060\u3044\u304f\u3064\u304b\u826f\u304f\u5206\u304b\u3089\u306a\u3044\u3082\u306e\u304c\u3042\u308b\u3002 \u3088\u304f\u4f7f\u3046\u306e\u306f\u3001\u3053\u306e\u304f\u3089\u3044\u3002 a = %w[bright cool dusty active] # each_with_index a.sort.each_with_index do |item, index| print \"[#\", index, \" : \", item, \"]\" end #=> [#0 : active][#1 : b\u2026","categories":["Perl","Ruby"],"height":"190","url":"https://argius.hatenablog.jp/entry/20060406/1144343931","blog_url":"https://argius.hatenablog.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fargius.hatenablog.jp%2Fentry%2F20060406%2F1144343931\" title=\"Enumerable\u4f7f\u3044\u3053\u306a\u3057\u305f\u3044 - argius note\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2006-04-06 02:18:51","blog_title":"argius note","width":"100%","version":"1.0","author_url":"https://blog.hatena.ne.jp/argius/","title":"Enumerable\u4f7f\u3044\u3053\u306a\u3057\u305f\u3044","provider_name":"Hatena Blog","type":"rich","image_url":null,"author_name":"argius","provider_url":"https://hatena.blog"}