Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
d = [2,4,6] d.collect{ |i| i * 2 } #=> [4,8,12]
多次元配列で同じことをしようとしました
d = [[1,3],[2,4]] d.collect { |i,j| i*2, j*2 } #=> getting syntax error