🌈 搜索
📅  最后修改于: 2022-03-11 14:45:43.428000             🧑  作者: Mango
array = ['foo', 1, 'bar', 2] array.in_groups_of(2) # => [['foo', 1], ['bar', 2]]