连接each和with_index是否可以接受?

时间:2017-02-24 02:23:22

标签: ruby

最好不要像这样连接eachwith_index

array.each_with_index { ... }

或连接是否完全可以接受?

array.each.with_index  { ... }

0 个答案:

没有答案