数组示例
[
[
"Francis",
"Chartrand",
"email@email.com"
],
[
"Francis",
"Chartrand",
"second_email@email.com"
],...
]
想要的结果
"email@email.com, second_email@email.com, ..."
我的解决方案(两个循环)
array.map{|a| a[2]}.join(", ")
是否可以用一个循环来做到这一点?