Joshua Gatcomb wrote:
 ... FAQs such as union, difference, intersection of lists are
FAQs for a reason.
...  it would be nice to have a real simple easy answer for p6.

And indeed it could be:

use Sets;

my @a is Set = (1,2,3);
my @b is Set = (2,3,4);

say @a + @b;  # (1,2,3,4)
say @a / @b;  # (2,3)

etc. Possibly with nice Unicode equivalents.
--
TSa (Thomas Sandlaß)



Reply via email to