Re: Is creating and Array or Parcel ?

2015-08-03 Thread Timo Paulssen
On 08/02/2015 02:35 PM, Lloyd Fournier wrote: @a = $z[0].list or in a less documented way: @a = $z[0] The idea is that you can store an array in ether a @ or $ variable. Where as in perl5 you could only store a reference in $ variable. The sigil simply tells perl6 how it should behave

Re: Is creating and Array or Parcel ?

2015-08-03 Thread Marc Chantreux
On Sun, Aug 02, 2015 at 10:35:23PM +1000, Lloyd Fournier wrote: If you want to assign to an array which is an element of another array: @a = $z[0].list this is very confusing because this is not a LoL. $z.flat seems more intuitive to me. -- Marc Chantreux (eiro on github and freenode)

Re: Is creating and Array or Parcel ?

2015-08-02 Thread Moritz Lenz
Hi, On 02.08.2015 06:43, Gabor Szabo wrote: On Fri, Jul 31, 2015 at 4:16 PM, Moritz Lenz mor...@faui2k3.org mailto:mor...@faui2k3.org wrote: On 07/31/2015 03:02 PM, Gabor Szabo wrote: The following code (with comments) is confusing me. Can someone give some explanation

Is creating and Array or Parcel ?

2015-07-31 Thread Gabor Szabo
The following code (with comments) is confusing me. Can someone give some explanation please? Specifically the difference between my @x = a b; my $z = @x; and my $z = a b; Gabor use v6; # creates an array here: my @x = a b; say @x.WHICH; # Array|140713422866208 say @x;# a b say