Rubyã®ã¯ã©ã¹ã¯ãªã¼ãã³ã§ããã¤ã¾ãRubyã®ã¦ã¼ã¶ãæ¢åã®ã¯ã©ã¹ãéãã¦èªç±ã«å®è£ ãå¼ããã¨ãã§ããã®ã§ããçµã¿è¾¼ã¿ã¯ã©ã¹ã¨ã¦ãã®ä¾å¤ã§ã¯ããã¾ããã æ¢åã®ã¯ã©ã¹ãéãã¦ã¡ã½ããã追å ãããåå®ç¾©ããããããã¨ããæ¥çç¨èªã§ãã¢ã³ãã¼ããããã¨ããã¾ããã¢ã³ãã¼ãããã¨ããèªã«ã¯æããã«æ¹å¤çã»è»½èçãã¥ã¢ã³ã¹ãå«ã¾ãã¦ãã¾ãããå¤ãã®Rubyistã¯ããã«ã²ãããã¨ç¡ãè¯ãã¢ã³ãã¼ããããã¾ããä½ãããã¢ã¯ãã¤ãéãã¦ããã§ãããããã ãã³ãã®ã¢ã³ãã¼ããã ã¢ã³ãã¼ãããã£ã¼ããã³ããã¯ã製ä½ä¸ã®ã©ã¤ãã©ãªã§å¤æ¬¡å é åã®è¦ç´ ã«é »ç¹ã«ã¢ã¯ã»ã¹ããå¿ è¦ãçãã¾ãããããã«ã¯é常ãArray#[]ã¾ãã¯#atã使ã£ã¦æ¬¡ã®ããã«ã¢ã¯ã»ã¹ãã¾ãã irb> arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] irb> arr[1][2] => 6 irb> a
{{#tags}}- {{label}}
{{/tags}}