【发布时间】:2019-08-15 02:57:41
【问题描述】:
python 中链迭代器的 Ruby 等价物是什么?
data_chained = []
data2 = {}
data_chained = chain(data_chained, data2)
如何在 Ruby 中做到这一点?
【问题讨论】:
-
你指的是
itertools.chain吗?对可迭代对象进行操作;在字典上使用它有点……奇怪。
标签: python arrays ruby language-comparisons