|
Re: Array comparisons [message #45539 is a reply to message #45538] |
Mon, 12 September 2005 09:53  |
R.G. Stockwell
Messages: 363 Registered: July 1999
|
Senior Member |
|
|
<pravesh.subramanian@gmail.com> wrote in message
news:1126543667.921408.320170@z14g2000cwz.googlegroups.com.. .
> hello,
> This is similar to the problem posted a few days back.
>
> I have two arrays A and B where B is smaller than A.
> All elements of B are present in A . I want to now have the Array A
> without (elementts present in B). i.e A - (A intersection B)
>
> Is there a quick way to do it than using for loops
>
> Thanks,
> Pravesh
>
Hi Pravesh,
see the routines listed at
http://www.dfanning.com/tips/set_operations.html
(specifically, check out Difference (i.e. return members of A that are not
in B.)
Cheers,
bob
|
|
|