Ruby inner flatten (array of arrays)

后端 未结 2 1997
逝去的感伤
逝去的感伤 2021-01-21 06:42

I have an array like the following

[
  [[0, :a], [2, :b]],
  [3, :c],
  [4, :d],
  [[5, :e], [6, :f], [7, :g]]
]

That is, an Array of elements

2条回答
提交回复
热议问题