Hi,
Trying to use an enum. Can't easily find out how to use them. Looked in
both design documents and in the language documents page.
I can't seem to get the examples in the design documents to work. So I
seem to be missing something.
I got the following to work, and I thought enum was supp
On 06/11/15 06:50, Richard Hainsworth wrote:
I'm trying to do something like the following:
sub MAIN ( Str :$sort = 'simple') {
my enum SortOrder ;
my @array-of-three;
...
my @ordered = @array-of-three.sort(*.[ SortOrder($sort) ] );
...
}
Hi Richard,
SortOrder($foo) is an interface to get t
hello,
using perl6 version 2015.09 built on MoarVM version 2015.09,
i'm trying to create a hash with a slice of another one and some extra
pairs. as exemple:
my %x = < login jdoe first john last doe >;
my %y = :enable, |( %x< login first >.kv);
gives
0 => jdoe, 1 => john, enable
Hi,
On 11/07/2015 02:45 AM, Marc Chantreux wrote:
> hello,
>
> using perl6 version 2015.09 built on MoarVM version 2015.09,
> i'm trying to create a hash with a slice of another one and some extra
> pairs. as exemple:
>
> my %x = < login jdoe first john last doe >;
> my %y = :enable, |