Check out the docs.perl6.org page... And no, we don't. El lun., 30 abr. 2018 a las 8:48, ToddAndMargo (<toddandma...@zoho.com>) escribió:
> Hi All, > > I know it would only take me 25 seconds to write one, > but do we have an odd and even function build in? > > > Many thanks, > -T > > $ perl6 -e 'my $x=3; say $x.odd;' > No such method 'odd' for invocant of type 'Int'. Did you mean 'ord'? > in block <unit> at -e line 1 > > $ perl6 -e 'my $x=3; say $x.even;' > No such method 'even' for invocant of type 'Int' > in block <unit> at -e line 1 > -- JJ