I am trying to find intersection values โโbetween multiple arrays.
eg
code1 = [1,2,3] code2 = [2,3,4] code3 = [0,2,6]
So the result will be 2
I know in PHP, you can do this with array_intersect
I wanted to easily add an additional array, so I really don't want to use multiple loops
Any ideas?
Thanks, Alex
arrays ruby ruby-on-rails array-intersect
Alex Jul 07 '10 at 17:47 2010-07-07 17:47
source share