Re: combine hashes

2015-11-07 Thread Marc Chantreux
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 )

Re: combine hashes

2015-11-07 Thread Moritz Lenz
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

Re: combine hashes

2015-11-07 Thread Marc Chantreux
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 :

Re: combine hashes

2015-11-07 Thread Marc Chantreux
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

Re: combine hashes

2015-11-07 Thread Marc Chantreux
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

Re: combine hashes

2015-11-07 Thread Marc Chantreux
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

Re: combine hashes

2015-11-07 Thread Marc Chantreux
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

Re: combine hashes

2015-11-06 Thread Moritz Lenz
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, |

combine hashes

2015-11-06 Thread Marc Chantreux
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