develooper Front page | perl.perl6.users | Postings from November 2017

Re: Set difference using hashes vs array

Thread Previous | Thread Next
Brandon Allbery
November 24, 2017 02:09
Re: Set difference using hashes vs array
Message ID:
On Thu, Nov 23, 2017 at 9:06 PM, ToddAndMargo <> wrote:

> On 11/22/2017 08:41 PM, Norman Gaywood wrote:
>> my Set $take1 = (%all (-) %remove) (-) %excludes;
> What does "Set" do in the above?

Declares a type, which helps avoid errors. Similarly `my Int $a` means $a
can only take Int values.

brandon s allbery kf8nh                               sine nomine associates                        
unix, openafs, kerberos, infrastructure, xmonad

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About