On Thu, Dec 31, 2009 at 02:17:53PM +1800, Peng Yu wrote: > Suppose that I have the following two variables A and B. I want to > compute the union and the intersection of them, which are 'a b c d' > and 'b c' respectively. > > A = a b c > B = b c d
union = $(sort $(A) $(B))
intersection = $(filter $(A), $(B))
I did not test this but I think this works.
Sam
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
