in reply to Re^2: [Perl6] Can i put a operator in container (Perl 6)
in thread [Perl6] Can i put a operator in container

For the record this would work in P6:

my %missing = %book.Set (-) %dict.Set;

Replies are listed 'Best First'.
Re^4: [Perl6] Can i put a operator in container (Perl 6)
by Laurent_R (Canon) on Jul 11, 2017 at 10:07 UTC
    Yes, clearly, you can use the built-in set difference operator for that specific operation. My point was only to show an example demonstrating how to create a new operator, in this case between two hashes.