hello,
> Putting the parens around it force it not be a named argument.
ok .. to make sure i understand: if flat had a :enable named parameter,
the way to use it to get
{:enable{True}, :ok }
with the named parameter to False, would it be
my %x = :ok;
flat ( enable => True, %x )
On 11/07/2015 10:17 AM, Marc Chantreux wrote:
> hello Moritz,
>
> On Sat, Nov 07, 2015 at 08:17:21AM +0100, Moritz Lenz wrote:
>> my %x = < login jdoe first john last doe >;
>> my %y = flat (:enable, %x< login first >:p);
>
> i tried :p but the thing is i was searching for something straight as
that one is crap too. again: i'm sorry
On Sat, Nov 07, 2015 at 10:13:17AM +0100, Marc Chantreux wrote:
> hello Moritz,
>
> On Sat, Nov 07, 2015 at 08:17:21AM +0100, Moritz Lenz wrote:
> > my %x = < login jdoe first john last doe >;
> > my %y = flat (:enable, %x< login first >:p);
>
> i tried :
damnit... i accidentally sent this WIP version of the email.
i apologize.
regards
On Sat, Nov 07, 2015 at 10:04:16AM +0100, Marc Chantreux wrote:
> On Sat, Nov 07, 2015 at 08:17:21AM +0100, Moritz Lenz wrote:
> > my %x = < login jdoe first john last doe >;
> > my %y = flat (:enable, %x< login
hello Moritz,
On Sat, Nov 07, 2015 at 08:17:21AM +0100, Moritz Lenz wrote:
> my %x = < login jdoe first john last doe >;
> my %y = flat (:enable, %x< login first >:p);
i tried :p but the thing is i was searching for something straight as
the perl5
my %y = (%x, qw( enable 1 ));
si i really
hello Moritz,
On Sat, Nov 07, 2015 at 08:17:21AM +0100, Moritz Lenz wrote:
> my %x = < login jdoe first john last doe >;
> my %y = flat (:enable, %x< login first >:p);
i tried :p but the thing is i was searching for something straight as
the perl5
my %y = (%x, qw( enable 1 ));
si i really
On Sat, Nov 07, 2015 at 08:17:21AM +0100, Moritz Lenz wrote:
> my %x = < login jdoe first john last doe >;
> my %y = flat (:enable, %x< login first >:p);
my %x = < login jdoe first john last doe >;
my %y = ( :enable, %x< login first >:p);
> say %y.perl; # {:enable, :first("jo
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, |
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