📜  将两个列表合并在一起 ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:47.490000             🧑  作者: Mango

代码示例1
# Merging
c = a + b
 => [1, 2, 3, 4, 5, 2, 4, 6]
# Removing the value of other array
# (a & b) is getting the common element from these two arrays
c - (a & b)
=> [1, 3, 5, 6]