On 10/11/19 8:09 PM, William Michels via perl6-users wrote:
Hi Todd, Per the REPL, $x looks to be a List:
mbook:~ homedir$ perl6
To exit type 'exit' or '^D'
my $x = (44,66)
(44 66)
say $x.WHAT
(List)
say $x.^name
List
my $y = < 55 77 >
(55 77)
say $y.WHAT
(List)
say $y.^name
List
say $*VM
moar (2019.07.1)
HTH, Bill.
HTH, Bill.
Sweet. Love examples. Thank you!
Question: what type is "my $x = (44, 66)". An array?
$ p6 'my List $x = (44,66); say $x;'
(44 66)
:-)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~