From df6f8630a373806bac5016bd7bebd25c140557b6 Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Mon, 10 Jul 2017 21:40:05 -0700 Subject: [PATCH] [perl6] Lists are not Arrays. Make this clear Lists are immutable while Arrays are mutable. Arrays are which have the @ sigil. --- perl6.html.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl6.html.markdown b/perl6.html.markdown index d0ccdc9a..44960347 100644 --- a/perl6.html.markdown +++ b/perl6.html.markdown @@ -54,10 +54,11 @@ my $forced-bool = so $str; # And you can use the prefix `so` operator # which turns its operand into a Bool ``` -### Lists +### Arrays and Lists ```perl6 -# Lists represent multiple values. Their name start with `@`. +# Arrays represent multiple values. Their name start with `@`. +# Lists are similar but are an immutable type my @array = 'a', 'b', 'c'; # equivalent to :