On Thu, 30 Oct 2008, wrote:
Hi there,
question about arrays and array refs in Rakudo today.
I have array ref
my $ar = [1,2,3];
how can I go over it?
I try:
my $r = [1,2,3]; say $r.elems;
3
my $r = [1,2,3]; say $r.WHAT;
Array
my $r = [1,2,3]; Y.say for $r;
Y
my $r = [1,2,3]; .say
On Thu, 30 Oct 2008, Carl Mäsak wrote:
Timothy ():
my $r = 1 2 3; for $r - $t { say $t };
Which revision of Rakudo are you running? In my r32239, it outputs 1
2 3 on the same line (i.e. it doesn't iterate over each element).
Oops. My bad. Try either of the following with parrot