新手问题 怎么找出两个数组的不同元素

easonlovewan · July 21, 2015 · Last by nine replied at July 22, 2015 · 3006 hits

怎么快速的找出两个数组不同的元素?

(ary - other_ary).uniq

@ywjno 他写的有 bug other_ry 有的没有统计到。

6 Floor has deleted

(a | b) - (a & b)

You need to Sign in before reply, if you don't have an account, please Sign up first.