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

Re: Set difference using hashes vs array

Thread Previous | Thread Next
From:
Brandon Allbery
Date:
November 24, 2017 02:09
Subject:
Re: Set difference using hashes vs array
Message ID:
CAKFCL4VBKLefck=HJ6vUJNi2QJh+_pYp2GoNMH=Y_p=vbJLpJQ@mail.gmail.com
On Thu, Nov 23, 2017 at 9:06 PM, ToddAndMargo <ToddAndMargo@zoho.com> 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
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About