Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: [Perl6] Can i put a operator in container (Perl 6)

by raiph (Deacon)
on Jul 11, 2017 at 04:47 UTC ( [id://1194769]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1194769]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-29 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found