*目次 [#qe6f8ecb] #contents *基本 [#y0ee845a] Rubyで配列はArrayクラスのインスタンス *配列の全ての要素を評価した結果を配列として返す [#p93c5741] collect、mapを使う #pre{{ a = ["a", "b", "c", "d", "e"] p a.collect {|x| x + x } => ["aa", "bb", "cc", "dd", "ee"] }}