Module: ArrayUtile
- Included in:
- Stool::Command::WorkSpace::Update
- Defined in:
- lib/stool/Utils/ArrayUtile.rb
Instance Method Summary collapse
-
#diffOf(a, b) ⇒ Object
找到两个数组中,不同的元素.
Instance Method Details
#diffOf(a, b) ⇒ Object
找到两个数组中,不同的元素
4 5 6 7 |
# File 'lib/stool/Utils/ArrayUtile.rb', line 4 def diffOf(a,b) sum = a + b sum.uniq end |